mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-361): Extract LogisticStockTabs component
This commit is contained in:
@@ -1,32 +1,7 @@
|
|||||||
'use client';
|
import LogisticStockTabs from '@/components/pages/report/logistic-stock/LogisticStockTabs';
|
||||||
|
|
||||||
import Tabs from '@/components/Tabs';
|
|
||||||
import PurchasesPerSupplierTab from '@/components/pages/report/logistic-stock/PurchasesPerSupplierTab';
|
|
||||||
|
|
||||||
const LogisticStock = () => {
|
const LogisticStock = () => {
|
||||||
const tabs = [
|
return <LogisticStockTabs />;
|
||||||
{
|
|
||||||
id: '1',
|
|
||||||
label: 'Rekapitulasi Pembelian Per Supplier',
|
|
||||||
content: <PurchasesPerSupplierTab />,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '2',
|
|
||||||
label: 'Rekapitulasi Pemakaian Barang',
|
|
||||||
content: <PurchasesPerSupplierTab />,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: '3',
|
|
||||||
label: 'Rekapitulasi Stock Persediaan Barang',
|
|
||||||
content: <PurchasesPerSupplierTab />,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
return (
|
|
||||||
<section className='w-full p-4'>
|
|
||||||
<Tabs tabs={tabs} variant='lifted' />
|
|
||||||
</section>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default LogisticStock;
|
export default LogisticStock;
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
|
import Tabs from '@/components/Tabs';
|
||||||
|
import PurchasesPerSupplierTab from '@/components/pages/report/logistic-stock/PurchasesPerSupplierTab';
|
||||||
|
|
||||||
|
const LogisticStockTabs = () => {
|
||||||
|
const tabs = [
|
||||||
|
{
|
||||||
|
id: '1',
|
||||||
|
label: 'Rekapitulasi Pembelian Per Supplier',
|
||||||
|
content: <PurchasesPerSupplierTab />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '2',
|
||||||
|
label: 'Rekapitulasi Pemakaian Barang',
|
||||||
|
content: <PurchasesPerSupplierTab />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: '3',
|
||||||
|
label: 'Rekapitulasi Stock Persediaan Barang',
|
||||||
|
content: <PurchasesPerSupplierTab />,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className='w-full p-4'>
|
||||||
|
<Tabs tabs={tabs} variant='lifted' />
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LogisticStockTabs;
|
||||||
Reference in New Issue
Block a user