refactor(FE): Center PDF status and refine payment badge styling

This commit is contained in:
rstubryan
2026-01-23 10:54:15 +07:00
parent a82860cb68
commit 8c976b6d0b
2 changed files with 4 additions and 3 deletions
@@ -479,7 +479,7 @@ const createPDFDocument = (params: CustomerPaymentExportPDFParams) => {
{formatCurrency(item.accounts_receivable)}
</Text>
</View>
<View style={[pdfStyles.tableCell, { flex: 1.5 }]}>
<View style={[pdfStyles.tableCellCenter, { flex: 1.5 }]}>
{item.status ? (
<View
style={[
@@ -514,13 +514,14 @@ const CustomerPaymentTab = () => {
return (
<Badge
statusIndicator={true}
size='sm'
variant='soft'
className={{
badge: `rounded-xl justify-start border border-gray-200 ${getPaymentStatusColor(value)}`,
badge: `py-2.5 px-2 font-medium text-base-content border border-gray-200 rounded-xl justify-start ${getPaymentStatusColor(value)}`,
status: getPaymentStatusIndicatorColor(value),
}}
>
<span className='capitalize'>{getPaymentStatusText(value)}</span>
{getPaymentStatusText(value)}
</Badge>
);
},