File tree Expand file tree Collapse file tree 15 files changed +33
-138
lines changed Expand file tree Collapse file tree 15 files changed +33
-138
lines changed Original file line number Diff line number Diff line change
1
+ import AccountLayout from "@modules/account/templates/account-layout"
2
+
3
+ export default function AddressPageLayout ( {
4
+ children,
5
+ } : {
6
+ children : React . ReactNode
7
+ } ) {
8
+ return < AccountLayout > { children } </ AccountLayout >
9
+ }
Original file line number Diff line number Diff line change 1
- import AccountLayout from "@modules/account/templates/account-layout"
2
1
import AddressesTemplate from "@modules/account/templates/addresses-template"
3
2
import { Metadata } from "next"
4
3
@@ -8,9 +7,5 @@ export const metadata: Metadata = {
8
7
}
9
8
10
9
export default function Addresses ( ) {
11
- return (
12
- < AccountLayout >
13
- < AddressesTemplate />
14
- </ AccountLayout >
15
- )
10
+ return < AddressesTemplate />
16
11
}
Original file line number Diff line number Diff line change
1
+ import AccountLayout from "@modules/account/templates/account-layout"
2
+
3
+ export default function OrdersPageLayout ( {
4
+ children,
5
+ } : {
6
+ children : React . ReactNode
7
+ } ) {
8
+ return < AccountLayout > { children } </ AccountLayout >
9
+ }
Original file line number Diff line number Diff line change 1
- import AccountLayout from "@modules/account/templates/account-layout"
2
1
import OrdersTemplate from "@modules/account/templates/orders-template"
3
2
import { Metadata } from "next"
4
3
@@ -8,9 +7,5 @@ export const metadata: Metadata = {
8
7
}
9
8
10
9
export default function Orders ( ) {
11
- return (
12
- < AccountLayout >
13
- < OrdersTemplate />
14
- </ AccountLayout >
15
- )
10
+ return < OrdersTemplate />
16
11
}
Original file line number Diff line number Diff line change
1
+ import AccountLayout from "@modules/account/templates/account-layout"
2
+
3
+ export default function ProfilePageLayout ( {
4
+ children,
5
+ } : {
6
+ children : React . ReactNode
7
+ } ) {
8
+ return < AccountLayout > { children } </ AccountLayout >
9
+ }
Original file line number Diff line number Diff line change 1
- import AccountLayout from "@modules/account/templates/account-layout"
2
1
import ProfileTemplate from "@modules/account/templates/profile-template"
3
2
import { Metadata } from "next"
4
3
@@ -8,9 +7,5 @@ export const metadata: Metadata = {
8
7
}
9
8
10
9
export default function Profile ( ) {
11
- return (
12
- < AccountLayout >
13
- < ProfileTemplate />
14
- </ AccountLayout >
15
- )
10
+ return < ProfileTemplate />
16
11
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import Providers from "@modules/providers "
1
+ import PageLayout from "app/page-layout "
2
2
3
3
export default function CollectionLayout ( {
4
4
children,
5
5
} : {
6
6
children : React . ReactNode
7
7
} ) {
8
- return < Providers > { children } </ Providers >
8
+ return < PageLayout > { children } </ PageLayout >
9
9
}
Original file line number Diff line number Diff line change 1
- import PageLayout from "app/page-layout"
2
1
import CollectionTemplate from "@modules/collections/templates"
3
2
import { Metadata } from "next"
4
3
@@ -24,9 +23,5 @@ export default async function CollectionPage({ params }: Props) {
24
23
`${ BASEURL } /collections?handle=${ params . handle } `
25
24
) . then ( ( res ) => res . json ( ) )
26
25
27
- return (
28
- < PageLayout >
29
- < CollectionTemplate collection = { collection } />
30
- </ PageLayout >
31
- )
26
+ return < CollectionTemplate collection = { collection } />
32
27
}
Original file line number Diff line number Diff line change 1
1
import medusaRequest from "@lib/medusa-fetch"
2
2
import OrderCompletedTemplate from "@modules/order/templates/order-completed-template"
3
- import PageLayout from "app/page-layout"
4
3
import { Metadata } from "next"
5
4
6
5
type Props = {
You can’t perform that action at this time.
0 commit comments