Skip to content

Commit 7d0eeeb

Browse files
committed
updated
1 parent d14f504 commit 7d0eeeb

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

package/src/components/container/PageContainer.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ type Props = {
99
description?: string;
1010
children: any | any[];
1111
title?: string;
12+
isFullLayout?:boolean;
1213
};
1314

14-
const PageContainer = ({ title, description, children }: Props) => (
15-
<Box sx={{marginTop:"64px"}}>
15+
const PageContainer = ({ title, description, children , isFullLayout=true }: Props) => (
16+
<Box sx={{marginTop:isFullLayout ? "30px" :"0px"}} >
1617
<Helmet>
1718
<title>{title}</title>
1819
<meta name="description" content={description} />

package/src/layouts/full/FullLayout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const FullLayout: FC = () => {
5252
ml: `256px`,
5353
},
5454
}),
55-
55+
marginTop:"64px"
5656
}}
5757
>
5858
{/* PageContent */}

package/src/views/authentication/Login.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import AuthLogo from 'src/layouts/full/shared/logo/AuthLogo';
1212
const Login2 = () => {
1313

1414
return (
15-
<PageContainer title="Login" description="this is Login page">
15+
<PageContainer title="Login" description="this is Login page" isFullLayout={false}>
1616
<Box
1717
sx={{
1818
position: 'relative',

package/src/views/authentication/Register.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import AuthRegister from './auth/AuthRegister';
66
import AuthLogo from 'src/layouts/full/shared/logo/AuthLogo';
77

88
const Register2 = () => (
9-
<PageContainer title="Register" description="this is Register page">
9+
<PageContainer title="Register" description="this is Register page" isFullLayout={false}>
1010
<Box
1111
sx={{
1212
position: 'relative',

0 commit comments

Comments
 (0)