mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +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)}
|
{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>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user