mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
refactor(FE): Refactor table and tab styles for consistent spacing and
layout
This commit is contained in:
@@ -126,7 +126,7 @@ const ClosingDetail: React.FC<ClosingDetailProps> = ({
|
|||||||
variant='boxed'
|
variant='boxed'
|
||||||
className={{
|
className={{
|
||||||
tabHeaderWrapper:
|
tabHeaderWrapper:
|
||||||
'justify-between items-center py-3 border-b border-base-content/10',
|
'relative justify-between items-center py-3 after:absolute after:bottom-0 after:left-0 after:right-0 after:-mx-4 after:border-b after:border-base-content/10',
|
||||||
tab: 'w-fit',
|
tab: 'w-fit',
|
||||||
content: 'p-0 m-0',
|
content: 'p-0 m-0',
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import RowCollapseOptions from '@/components/table/RowCollapseOptions';
|
|||||||
import RowOptionsMenuWrapper from '@/components/table/RowOptionsMenuWrapper';
|
import RowOptionsMenuWrapper from '@/components/table/RowOptionsMenuWrapper';
|
||||||
import RequirePermission from '@/components/helper/RequirePermission';
|
import RequirePermission from '@/components/helper/RequirePermission';
|
||||||
|
|
||||||
import { cn, formatCurrency, formatDate } from '@/lib/helper';
|
import { cn, formatDate } from '@/lib/helper';
|
||||||
import { isResponseSuccess } from '@/lib/api-helper';
|
import { isResponseSuccess } from '@/lib/api-helper';
|
||||||
import { useTableFilter } from '@/services/hooks/useTableFilter';
|
import { useTableFilter } from '@/services/hooks/useTableFilter';
|
||||||
import { LocationApi } from '@/services/api/master-data';
|
import { LocationApi } from '@/services/api/master-data';
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const FinanceClosingTable = ({
|
|||||||
}, [finance]);
|
}, [finance]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col gap-4 p-0 sm:p-3'>
|
<div className='flex flex-col gap-4 pt-3'>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<FinanceClosingSkeleton />
|
<FinanceClosingSkeleton />
|
||||||
) : !isResponseSuccess(finance) ? (
|
) : !isResponseSuccess(finance) ? (
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const HppExpeditionClosingTable = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='w-full p-0 sm:p-3'>
|
<div className='w-full pt-3'>
|
||||||
<Card
|
<Card
|
||||||
className={{
|
className={{
|
||||||
wrapper: 'w-full rounded-lg border-none',
|
wrapper: 'w-full rounded-lg border-none',
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ const OverheadClosingTable = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='w-full p-0 sm:p-3'>
|
<div className='w-full pt-3'>
|
||||||
<Card
|
<Card
|
||||||
className={{
|
className={{
|
||||||
wrapper: 'w-full rounded-lg border-none',
|
wrapper: 'w-full rounded-lg border-none',
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ const SalesClosingTable = ({ projectFlockId }: SalesClosingTableProps) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='w-full p-0 sm:p-3'>
|
<div className='w-full pt-3'>
|
||||||
<Card
|
<Card
|
||||||
className={{
|
className={{
|
||||||
wrapper: 'w-full rounded-lg border-none',
|
wrapper: 'w-full rounded-lg border-none',
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ const SapronakCalculationClosingTable = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex flex-col gap-4'>
|
<div className='flex flex-col gap-4 pt-3'>
|
||||||
{/* Table DOC jika kategori Project Flock Growing */}
|
{/* Table DOC jika kategori Project Flock Growing */}
|
||||||
<Card
|
<Card
|
||||||
title={
|
title={
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ const ClosingIncomingSapronaksTable = ({
|
|||||||
}, [sorting, updateFilter]);
|
}, [sorting, updateFilter]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='w-full'>
|
<div className='w-full pt-3'>
|
||||||
<Card
|
<Card
|
||||||
className={{
|
className={{
|
||||||
wrapper: 'w-full rounded-lg',
|
wrapper: 'w-full rounded-lg',
|
||||||
|
|||||||
Reference in New Issue
Block a user