refactor(FE): Update FinanceTable layout and conditional styling

This commit is contained in:
rstubryan
2026-02-27 11:27:51 +07:00
parent 5e3d2273d1
commit 9f4c041ec8
@@ -709,7 +709,7 @@ const FinanceTable = () => {
</div> </div>
{/* Table Section */} {/* Table Section */}
<div className='flex flex-col mb-4 -mx-4 px-4'> <div className='flex flex-col mb-4'>
{isLoading ? ( {isLoading ? (
<div className='w-full flex flex-row justify-center items-center p-4'> <div className='w-full flex flex-row justify-center items-center p-4'>
<span className='loading loading-spinner loading-xl' /> <span className='loading loading-spinner loading-xl' />
@@ -727,7 +727,10 @@ const FinanceTable = () => {
onPageSizeChange={setPageSize} onPageSizeChange={setPageSize}
isLoading={isLoading} isLoading={isLoading}
className={{ className={{
containerClassName: 'p-3 mb-0', containerClassName: cn('p-3 mb-0', {
'w-full':
isResponseSuccess(finances) && finances?.data?.length === 0,
}),
headerColumnClassName: 'text-nowrap', headerColumnClassName: 'text-nowrap',
}} }}
/> />