Skip to content

Commit 444b496

Browse files
committed
Update new Layout and fallback of Suspence REACT3
1 parent 76db8a8 commit 444b496

File tree

18 files changed

+109
-87
lines changed

18 files changed

+109
-87
lines changed

src/components/Loading/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />;
77
export const Loading = () => {
88
return (
99
<div className="container">
10-
<div style={{ margin: 'auto', textAlign: 'center' }}>
10+
<div style={{ margin: '1rem auto auto auto', textAlign: 'center' }}>
1111
<Spin indicator={antIcon} />
1212
</div>
1313
</div>

src/pages/AuthPages/LoginPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { Login } from 'src/components/Auth/Login';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _LoginPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<Login />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212

src/pages/AuthPages/ProfilePage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { Profile } from 'src/components/Auth/Profile';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _ProfilePage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<Profile />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212

src/pages/AuthPages/RegisterPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { Register } from 'src/components/Auth/Register';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _RegisterPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<Register />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212

src/pages/ErrorPages/404Pages.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { NotFound } from 'src/components/Error/404';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _NotFoundPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<NotFound />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212
const NotFoundPage = React.memo(_NotFoundPage);

src/pages/HomePages/HomePage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { Home } from 'src/components/Home';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _HomePage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<Home />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212
const HomePage = React.memo(_HomePage);

src/pages/ProductPages/ProductEditPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { ProductForm } from 'src/components/Products/ProductForm';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _ProductNewPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<ProductForm edit={true} />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212
const ProductNewPage = React.memo(_ProductNewPage);

src/pages/ProductPages/ProductItemPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { ProductItem } from 'src/components/Products/ProductItem';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _ProductItemPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<ProductItem />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212
const ProductItemPage = React.memo(_ProductItemPage);

src/pages/ProductPages/ProductListPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { ProductList } from 'src/components/Products/ProductList';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _ProductListPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<ProductList />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212
const ProductListPage = React.memo(_ProductListPage);

src/pages/ProductPages/ProductNewPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { ProductForm } from 'src/components/Products/ProductForm';
3-
import { MainLayout } from 'src/pages/layouts/MainLayout';
3+
import { PageLayout } from 'src/pages/layouts/PageLayout';
44

55
const _ProductNewPage = () => {
66
return (
7-
<MainLayout>
7+
<PageLayout>
88
<ProductForm edit={false} />
9-
</MainLayout>
9+
</PageLayout>
1010
);
1111
};
1212
const ProductNewPage = React.memo(_ProductNewPage);

0 commit comments

Comments
 (0)