mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-26 00:05:45 +00:00
refactor(FE-326): Remove Tabs wrapper from SalesReportTable
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import Tabs from '@/components/Tabs';
|
|
||||||
import React, { useState, useMemo } from 'react';
|
import React, { useState, useMemo } from 'react';
|
||||||
import { ColumnDef } from '@tanstack/react-table';
|
import { ColumnDef } from '@tanstack/react-table';
|
||||||
import Table, { CustomHeaderRow } from '@/components/Table';
|
import Table, { CustomHeaderRow } from '@/components/Table';
|
||||||
@@ -365,20 +364,12 @@ const SalesReportTable = ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<section className='w-full'>
|
<section className='w-full'>
|
||||||
<Tabs
|
|
||||||
className='bg-base-100 p-2'
|
|
||||||
onTabChange={setActiveTabId}
|
|
||||||
activeTabId={activeTabId}
|
|
||||||
tabs={[
|
|
||||||
{
|
|
||||||
id: 'penjualan',
|
|
||||||
label: 'Penjualan',
|
|
||||||
content: (
|
|
||||||
<div className='p-4'>
|
<div className='p-4'>
|
||||||
<h2 className='text-xl font-semibold mb-4'>Penjualan</h2>
|
<h2 className='text-xl font-semibold mb-4'>Penjualan</h2>
|
||||||
<Card
|
<Card
|
||||||
className={{
|
className={{
|
||||||
wrapper: 'w-full bg-base-100',
|
wrapper: 'w-full bg-base-100',
|
||||||
|
body: 'p-0',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Table
|
<Table
|
||||||
@@ -435,11 +426,6 @@ const SalesReportTable = ({
|
|||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
),
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
variant='lifted'
|
|
||||||
/>
|
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user