refactor(FE): Format PdfTfoot props and inline Text

This commit is contained in:
rstubryan
2026-01-27 16:24:43 +07:00
parent 142ce7fe3a
commit 6f96f20b49
+6 -4
View File
@@ -75,7 +75,11 @@ interface PdfTfootProps {
label?: string;
}
export const PdfTfoot = ({ columns, cells, label = 'Total' }: PdfTfootProps) => {
export const PdfTfoot = ({
columns,
cells,
label = 'Total',
}: PdfTfootProps) => {
return (
<View style={[styles.tableRow, styles.summaryRow]}>
{columns.map((column, index) => {
@@ -113,9 +117,7 @@ export const PdfTfoot = ({ columns, cells, label = 'Total' }: PdfTfootProps) =>
return (
<View key={column.key} style={cellStyle}>
<Text>
{column.key === 'no' ? label : cellData?.value || ''}
</Text>
<Text>{column.key === 'no' ? label : cellData?.value || ''}</Text>
</View>
);
})}