From de5ef26bb1017540969f8847016193f7e1933ee1 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sun, 26 Mar 2023 15:10:59 +0700
Subject: transaction detail

---
 src/lib/transaction/components/Transactions.jsx | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

(limited to 'src/lib/transaction/components/Transactions.jsx')

diff --git a/src/lib/transaction/components/Transactions.jsx b/src/lib/transaction/components/Transactions.jsx
index 3d3dd533..0a772967 100644
--- a/src/lib/transaction/components/Transactions.jsx
+++ b/src/lib/transaction/components/Transactions.jsx
@@ -17,6 +17,7 @@ import _ from 'lodash'
 import Alert from '@/core/components/elements/Alert/Alert'
 import MobileView from '@/core/components/views/MobileView'
 import DesktopView from '@/core/components/views/DesktopView'
+import Menu from '@/lib/auth/components/Menu'
 
 const Transactions = () => {
   const router = useRouter()
@@ -196,10 +197,15 @@ const Transactions = () => {
 
       <DesktopView>
         <div className='container mx-auto flex py-10'>
-          <div className='w-3/12'></div>
+          <div className='w-3/12 pr-4'>
+            <Menu />
+          </div>
           <div className='w-9/12 p-4 bg-white border border-gray_r-6 rounded'>
             <div className='flex mb-6 items-center justify-between'>
-              <h1 className='text-title-sm font-semibold'>Daftar Transaksi</h1>
+              <h1 className='text-title-sm font-semibold'>
+                Daftar Transaksi{' '}
+                {transactions?.data?.saleOrders ? `(${transactions?.data?.saleOrders.length})` : ''}
+              </h1>
               <form className='flex gap-x-2' onSubmit={handleSubmit}>
                 <input
                   type='text'
@@ -213,7 +219,7 @@ const Transactions = () => {
                 </button>
               </form>
             </div>
-            <table className='table-data w-full'>
+            <table className='table-data'>
               <thead>
                 <tr>
                   <th>No. Transaksi</th>
-- 
cgit v1.2.3

