mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +00:00
refactor(FE): Rename initialBalanceRow to firstRow
This commit is contained in:
@@ -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} />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user