mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Center PDF status and refine payment badge styling
This commit is contained in:
@@ -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>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user