diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-24 10:05:06 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-24 10:05:06 +0700 |
| commit | 047aacc646c86b316c4d42fb720cbc841426df27 (patch) | |
| tree | c9669477426181d80c6be63e903c16672cbc158b /src/pages/shop/quotation | |
| parent | c6b0402fb0ba7d56b1e060d36e98d934661d43d4 (diff) | |
fix
Diffstat (limited to 'src/pages/shop/quotation')
| -rw-r--r-- | src/pages/shop/quotation/finish.jsx | 41 | ||||
| -rw-r--r-- | src/pages/shop/quotation/index.jsx | 10 |
2 files changed, 51 insertions, 0 deletions
diff --git a/src/pages/shop/quotation/finish.jsx b/src/pages/shop/quotation/finish.jsx new file mode 100644 index 00000000..98ffeec2 --- /dev/null +++ b/src/pages/shop/quotation/finish.jsx @@ -0,0 +1,41 @@ +import Link from '@/core/components/elements/Link/Link' +import BasicLayout from '@/core/components/layouts/BasicLayout' +import useAuth from '@/core/hooks/useAuth' +import { EnvelopeIcon } from '@heroicons/react/24/outline' +import { useRouter } from 'next/router' + +export default function FinishQuotation() { + const auth = useAuth() + const router = useRouter() + const { id } = router.query + return ( + <BasicLayout> + <div className='m-4 px-4 py-6 shadow-md border border-gray_r-3'> + <div className='flex'> + <span className='p-3 mx-auto bg-yellow_r-3 border border-yellow_r-6 rounded'> + <EnvelopeIcon className='w-8 text-yellow_r-11' /> + </span> + </div> + <p className='h2 text-center mt-6'>Terima Kasih {auth?.name}</p> + <p className='text-center mt-3 leading-6 text-gray_r-11'> + Penawaran harga kamu di Indoteknik.com berhasil dikirimkan, tim kami akan segera menghubungi + anda. + </p> + {id && ( + <Link + href={`/my/transaction/${id}`} + className='btn-yellow !text-gray_r-12 mt-6 w-full' + > + Lihat Penawaran + </Link> + )} + <Link + href='/' + className='btn-light !text-gray_r-12 mt-2 w-full' + > + Ke Halaman Utama + </Link> + </div> + </BasicLayout> + ) +} diff --git a/src/pages/shop/quotation/index.jsx b/src/pages/shop/quotation/index.jsx new file mode 100644 index 00000000..744b75fe --- /dev/null +++ b/src/pages/shop/quotation/index.jsx @@ -0,0 +1,10 @@ +import AppLayout from '@/core/components/layouts/AppLayout' +import QuotationComponent from '@/lib/quotation/components/Quotation' + +export default function Quotation() { + return ( + <AppLayout title='Quotation'> + <QuotationComponent /> + </AppLayout> + ) +} |
