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)} {formatCurrency(item.accounts_receivable)}
</Text> </Text>
</View> </View>
<View style={[pdfStyles.tableCell, { flex: 1.5 }]}> <View style={[pdfStyles.tableCellCenter, { flex: 1.5 }]}>
{item.status ? ( {item.status ? (
<View <View
style={[ style={[
@@ -514,13 +514,14 @@ const CustomerPaymentTab = () => {
return ( return (
<Badge <Badge
statusIndicator={true} statusIndicator={true}
size='sm'
variant='soft' variant='soft'
className={{ 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), status: getPaymentStatusIndicatorColor(value),
}} }}
> >
<span className='capitalize'>{getPaymentStatusText(value)}</span> {getPaymentStatusText(value)}
</Badge> </Badge>
); );
}, },