api call ssr landing + latest product + ...

This commit is contained in:
hamid zarghami
2025-08-27 15:57:05 +03:30
parent b0f299fc70
commit 3f2a5878d0
27 changed files with 410 additions and 93 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
import { Button } from "@/components/ui/button"
import CartItem from "@/app/cart/components/CartItem"
import CartSummary from "@/components/CartSummary"
import withLayout from "@/hoc/withLayout"
import Layout from "@/hoc/Layout"
import { Trash } from "iconsax-react"
import { NextPage } from "next"
@@ -47,4 +47,10 @@ const Cart: NextPage = () => {
)
}
export default withLayout(Cart)
export default function CartWithLayout() {
return (
<Layout>
<Cart />
</Layout>
)
}
+8 -2
View File
@@ -1,5 +1,5 @@
import CartSummary from '@/components/CartSummary'
import withLayout from '@/hoc/withLayout'
import Layout from '@/hoc/Layout'
import { NextPage } from 'next'
import TitleBack from '../components/TitleBack'
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
@@ -45,4 +45,10 @@ const CartPayment: NextPage = () => {
)
}
export default withLayout(CartPayment)
export default function CartPaymentWithLayout() {
return (
<Layout>
<CartPayment />
</Layout>
)
}
+8 -2
View File
@@ -1,5 +1,5 @@
import CartSummary from '@/components/CartSummary'
import withLayout from '@/hoc/withLayout'
import Layout from '@/hoc/Layout'
import { NextPage } from 'next'
import CartItem from '../components/CartItem'
import TitleBack from '../components/TitleBack'
@@ -46,4 +46,10 @@ const CartShipping: NextPage = () => {
)
}
export default withLayout(CartShipping)
export default function CartShippingWithLayout() {
return (
<Layout>
<CartShipping />
</Layout>
)
}