refactor(FE): Rename initialBalanceRow to firstRow

This commit is contained in:
rstubryan
2026-01-28 10:00:01 +07:00
parent 3d8d0d9e4d
commit ca0d379c2c
3 changed files with 197 additions and 436 deletions
+3 -7
View File
@@ -18,7 +18,7 @@ interface PdfTableProps {
data: PdfTbodyCell[][];
footer?: PdfTfootCell[];
footerLabel?: string;
initialBalanceRow?: {
firstRow?: {
valueKey: string;
value: number;
align?: 'right';
@@ -31,16 +31,12 @@ export const PdfTable = ({
data,
footer,
footerLabel = 'Total',
initialBalanceRow,
firstRow,
}: PdfTableProps) => {
return (
<View style={styles.table}>
<PdfThead columns={columns} />
<PdfTbody
columns={columns}
rows={data}
initialBalanceRow={initialBalanceRow}
/>
<PdfTbody columns={columns} rows={data} firstRow={firstRow} />
{footer && footer.length > 0 && (
<PdfTfoot columns={columns} cells={footer} label={footerLabel} />
)}