Skip to content

Commit ffab067

Browse files
committed
fix: structure
1 parent 45a07b7 commit ffab067

File tree

15 files changed

+33
-138
lines changed

15 files changed

+33
-138
lines changed

src/app/account/addresses/layout.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

src/app/account/addresses/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import AccountLayout from "@modules/account/templates/account-layout"
21
import AddressesTemplate from "@modules/account/templates/addresses-template"
32
import { Metadata } from "next"
43

@@ -8,9 +7,5 @@ export const metadata: Metadata = {
87
}
98

109
export default function Addresses() {
11-
return (
12-
<AccountLayout>
13-
<AddressesTemplate />
14-
</AccountLayout>
15-
)
10+
return <AddressesTemplate />
1611
}

src/app/account/orders/layout.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

src/app/account/orders/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import AccountLayout from "@modules/account/templates/account-layout"
21
import OrdersTemplate from "@modules/account/templates/orders-template"
32
import { Metadata } from "next"
43

@@ -8,9 +7,5 @@ export const metadata: Metadata = {
87
}
98

109
export default function Orders() {
11-
return (
12-
<AccountLayout>
13-
<OrdersTemplate />
14-
</AccountLayout>
15-
)
10+
return <OrdersTemplate />
1611
}

src/app/account/profile/layout.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

src/app/account/profile/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import AccountLayout from "@modules/account/templates/account-layout"
21
import ProfileTemplate from "@modules/account/templates/profile-template"
32
import { Metadata } from "next"
43

@@ -8,9 +7,5 @@ export const metadata: Metadata = {
87
}
98

109
export default function Profile() {
11-
return (
12-
<AccountLayout>
13-
<ProfileTemplate />
14-
</AccountLayout>
15-
)
10+
return <ProfileTemplate />
1611
}

src/app/collections/[handle]/collection.tsx

Lines changed: 0 additions & 109 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import Providers from "@modules/providers"
1+
import PageLayout from "app/page-layout"
22

33
export default function CollectionLayout({
44
children,
55
}: {
66
children: React.ReactNode
77
}) {
8-
return <Providers>{children}</Providers>
8+
return <PageLayout>{children}</PageLayout>
99
}

src/app/collections/[handle]/page.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import PageLayout from "app/page-layout"
21
import CollectionTemplate from "@modules/collections/templates"
32
import { Metadata } from "next"
43

@@ -24,9 +23,5 @@ export default async function CollectionPage({ params }: Props) {
2423
`${BASEURL}/collections?handle=${params.handle}`
2524
).then((res) => res.json())
2625

27-
return (
28-
<PageLayout>
29-
<CollectionTemplate collection={collection} />
30-
</PageLayout>
31-
)
26+
return <CollectionTemplate collection={collection} />
3227
}

src/app/order/confirmed/[id]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import medusaRequest from "@lib/medusa-fetch"
22
import OrderCompletedTemplate from "@modules/order/templates/order-completed-template"
3-
import PageLayout from "app/page-layout"
43
import { Metadata } from "next"
54

65
type Props = {

0 commit comments

Comments
 (0)