4
0
forked from crowetic/commerce
commerce/pages/orders.tsx

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-10-27 00:47:29 -05:00
import type { GetStaticPropsContext } from 'next'
import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages'
2020-10-24 16:53:25 -03:00
import { Layout } from '@components/core'
2020-10-24 17:55:30 -03:00
import { Container, Text } from '@components/ui'
2020-10-26 14:59:02 -03:00
import { Bag } from '@components/icons'
2020-10-27 00:47:29 -05:00
export async function getStaticProps({ preview }: GetStaticPropsContext) {
const { pages } = await getAllPages({ preview })
return {
props: { pages },
}
}
2020-10-24 16:53:25 -03:00
export default function Orders() {
return (
<Container>
2020-10-24 17:55:30 -03:00
<Text variant="pageHeading">My Orders</Text>
2020-10-26 14:59:02 -03:00
<div className="flex-1 p-24 flex flex-col justify-center items-center ">
<span className="border border-dashed border-secondary rounded-full flex items-center justify-center w-16 h-16 p-12 bg-primary text-primary">
<Bag className="absolute" />
</span>
<h2 className="pt-6 text-2xl font-bold tracking-wide text-center">
No orders found
</h2>
<p className="text-accents-6 px-10 text-center pt-2">
Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.
</p>
</div>
2020-10-24 16:53:25 -03:00
</Container>
)
}
Orders.Layout = Layout