diff options
Diffstat (limited to 'src/pages/my')
| -rw-r--r-- | src/pages/my/daftar-merchant.jsx | 15 | ||||
| -rw-r--r-- | src/pages/my/invoices/[id].jsx (renamed from src/pages/my/invoice/[id].jsx) | 2 | ||||
| -rw-r--r-- | src/pages/my/invoices/index.jsx (renamed from src/pages/my/invoices.jsx) | 2 | ||||
| -rw-r--r-- | src/pages/my/kunjungan-sales.jsx | 2 | ||||
| -rw-r--r-- | src/pages/my/kunjungan-service.jsx | 3 | ||||
| -rw-r--r-- | src/pages/my/media-relations.jsx | 15 | ||||
| -rw-r--r-- | src/pages/my/menu.jsx | 1 | ||||
| -rw-r--r-- | src/pages/my/pembayaran-tempo.jsx | 2 | ||||
| -rw-r--r-- | src/pages/my/quotations/[id].jsx (renamed from src/pages/my/transaction/[id].jsx) | 2 | ||||
| -rw-r--r-- | src/pages/my/quotations/index.jsx | 26 | ||||
| -rw-r--r-- | src/pages/my/surat-dukungan.jsx | 3 | ||||
| -rw-r--r-- | src/pages/my/transactions/[id].jsx | 27 | ||||
| -rw-r--r-- | src/pages/my/transactions/index.jsx (renamed from src/pages/my/transactions.jsx) | 2 |
13 files changed, 92 insertions, 10 deletions
diff --git a/src/pages/my/daftar-merchant.jsx b/src/pages/my/daftar-merchant.jsx new file mode 100644 index 00000000..e1fa9bcb --- /dev/null +++ b/src/pages/my/daftar-merchant.jsx @@ -0,0 +1,15 @@ +import Seo from '@/core/components/Seo' +import BasicLayout from '@/core/components/layouts/BasicLayout' +import CreateMerchant from '@/lib/form/components/Merchant' + +export default function DaftarMerchant() { + return ( + <> + <Seo title='Daftar Merchant - Indoteknik.com' /> + + <BasicLayout> + <CreateMerchant></CreateMerchant> + </BasicLayout> + </> + ) +} diff --git a/src/pages/my/invoice/[id].jsx b/src/pages/my/invoices/[id].jsx index 740819cc..5972b382 100644 --- a/src/pages/my/invoice/[id].jsx +++ b/src/pages/my/invoices/[id].jsx @@ -6,7 +6,7 @@ import IsAuth from '@/lib/auth/components/IsAuth' import InvoiceComponent from '@/lib/invoice/components/Invoice' import { useRouter } from 'next/router' -export default function Invoice() { +export default function MyInvoice() { const router = useRouter() return ( diff --git a/src/pages/my/invoices.jsx b/src/pages/my/invoices/index.jsx index 59059b2e..73c7b9fe 100644 --- a/src/pages/my/invoices.jsx +++ b/src/pages/my/invoices/index.jsx @@ -5,7 +5,7 @@ import MobileView from '@/core/components/views/MobileView' import IsAuth from '@/lib/auth/components/IsAuth' import InvoicesComponent from '@/lib/invoice/components/Invoices' -export default function Invoices() { +export default function MyInvoices() { return ( <IsAuth> <MobileView> diff --git a/src/pages/my/kunjungan-sales.jsx b/src/pages/my/kunjungan-sales.jsx index 63e95837..052991d9 100644 --- a/src/pages/my/kunjungan-sales.jsx +++ b/src/pages/my/kunjungan-sales.jsx @@ -2,7 +2,7 @@ import Seo from '@/core/components/Seo' import BasicLayout from '@/core/components/layouts/BasicLayout' import KunjunganSales from '@/lib/form/components/KunjunganSales' -export default function pembayaran_tempo() { +export default function kunjungan_sales() { return ( <> <Seo title='Kunjungan Sales - Indoteknik.com' /> diff --git a/src/pages/my/kunjungan-service.jsx b/src/pages/my/kunjungan-service.jsx index 80d1ecbc..37de5a0b 100644 --- a/src/pages/my/kunjungan-service.jsx +++ b/src/pages/my/kunjungan-service.jsx @@ -2,8 +2,7 @@ import Seo from '@/core/components/Seo' import BasicLayout from '@/core/components/layouts/BasicLayout' import CreateKunjunganService from '@/lib/form/components/KunjunganService' -export default function pembayaran_tempo() { - +export default function kunjungan_service() { return ( <> <Seo title='Kunjungan Service - Indoteknik.com' /> diff --git a/src/pages/my/media-relations.jsx b/src/pages/my/media-relations.jsx new file mode 100644 index 00000000..a965f39a --- /dev/null +++ b/src/pages/my/media-relations.jsx @@ -0,0 +1,15 @@ +import Seo from '@/core/components/Seo' +import BasicLayout from '@/core/components/layouts/BasicLayout' +import CreateMediaRelations from '@/lib/form/components/MediaRelations' + +export default function media_relations() { + return ( + <> + <Seo title='Media Relations - Indoteknik.com' /> + + <BasicLayout> + <CreateMediaRelations></CreateMediaRelations> + </BasicLayout> + </> + ) +} diff --git a/src/pages/my/menu.jsx b/src/pages/my/menu.jsx index e7ae27fd..c8e1e7e9 100644 --- a/src/pages/my/menu.jsx +++ b/src/pages/my/menu.jsx @@ -40,6 +40,7 @@ export default function Menu() { <MenuHeader>Aktivitas Pembelian</MenuHeader> <div className='divide-y divide-gray_r-6 border-y border-gray_r-6 mt-4'> + <LinkItem href='/my/quotations'>Daftar Quotation</LinkItem> <LinkItem href='/my/transactions'>Daftar Transaksi</LinkItem> <LinkItem href='/my/invoices'>Invoice & Faktur Pajak</LinkItem> <LinkItem href='/my/wishlist'>Wishlist</LinkItem> diff --git a/src/pages/my/pembayaran-tempo.jsx b/src/pages/my/pembayaran-tempo.jsx index 1e4fc80d..8947bdd9 100644 --- a/src/pages/my/pembayaran-tempo.jsx +++ b/src/pages/my/pembayaran-tempo.jsx @@ -2,7 +2,7 @@ import Seo from '@/core/components/Seo' import BasicLayout from '@/core/components/layouts/BasicLayout' import PembayaranTempo from '@/lib/form/components/PembayaranTempo' -export default function pembayaran_tempo() { +export default function pembayaranTempo() { return ( <> <Seo title='Pembayaran Tempo - Indoteknik.com' /> diff --git a/src/pages/my/transaction/[id].jsx b/src/pages/my/quotations/[id].jsx index c3283783..1fbbf34a 100644 --- a/src/pages/my/transaction/[id].jsx +++ b/src/pages/my/quotations/[id].jsx @@ -6,7 +6,7 @@ import IsAuth from '@/lib/auth/components/IsAuth' import TransactionComponent from '@/lib/transaction/components/Transaction' import { useRouter } from 'next/router' -export default function Transaction() { +export default function MyQuotation() { const router = useRouter() return ( diff --git a/src/pages/my/quotations/index.jsx b/src/pages/my/quotations/index.jsx new file mode 100644 index 00000000..bd91d9d0 --- /dev/null +++ b/src/pages/my/quotations/index.jsx @@ -0,0 +1,26 @@ +import AppLayout from '@/core/components/layouts/AppLayout' +import BasicLayout from '@/core/components/layouts/BasicLayout' +import DesktopView from '@/core/components/views/DesktopView' +import MobileView from '@/core/components/views/MobileView' +import IsAuth from '@/lib/auth/components/IsAuth' +import dynamic from 'next/dynamic' + +const TransactionsComponent = dynamic(() => import('@/lib/transaction/components/Transactions')) + +export default function MyQuotations() { + return ( + <IsAuth> + <MobileView> + <AppLayout title='Quotation'> + <TransactionsComponent context='quotation' /> + </AppLayout> + </MobileView> + + <DesktopView> + <BasicLayout> + <TransactionsComponent context='quotation' /> + </BasicLayout> + </DesktopView> + </IsAuth> + ) +} diff --git a/src/pages/my/surat-dukungan.jsx b/src/pages/my/surat-dukungan.jsx index 8c469d02..8058f34d 100644 --- a/src/pages/my/surat-dukungan.jsx +++ b/src/pages/my/surat-dukungan.jsx @@ -3,8 +3,7 @@ import BasicLayout from '@/core/components/layouts/BasicLayout' import CreateKunjunganService from '@/lib/form/components/KunjunganService' import CreateSuratDukungan from '@/lib/form/components/SuratDukungan' -export default function pembayaran_tempo() { - +export default function surat_dukungan() { return ( <> <Seo title='Surat Dukungan - Indoteknik.com' /> diff --git a/src/pages/my/transactions/[id].jsx b/src/pages/my/transactions/[id].jsx new file mode 100644 index 00000000..e36c1ca4 --- /dev/null +++ b/src/pages/my/transactions/[id].jsx @@ -0,0 +1,27 @@ +import AppLayout from '@/core/components/layouts/AppLayout' +import BasicLayout from '@/core/components/layouts/BasicLayout' +import DesktopView from '@/core/components/views/DesktopView' +import MobileView from '@/core/components/views/MobileView' +import IsAuth from '@/lib/auth/components/IsAuth' +import TransactionComponent from '@/lib/transaction/components/Transaction' +import { useRouter } from 'next/router' + +export default function MyTransaction() { + const router = useRouter() + + return ( + <IsAuth> + <MobileView> + <AppLayout title='Transaksi'> + <TransactionComponent id={router.query.id} /> + </AppLayout> + </MobileView> + + <DesktopView> + <BasicLayout> + <TransactionComponent id={router.query.id} /> + </BasicLayout> + </DesktopView> + </IsAuth> + ) +} diff --git a/src/pages/my/transactions.jsx b/src/pages/my/transactions/index.jsx index a8ca78b8..91482a39 100644 --- a/src/pages/my/transactions.jsx +++ b/src/pages/my/transactions/index.jsx @@ -7,7 +7,7 @@ import dynamic from 'next/dynamic' const TransactionsComponent = dynamic(() => import('@/lib/transaction/components/Transactions')) -export default function Transactions() { +export default function MyTransactions() { return ( <IsAuth> <MobileView> |
