mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Format PdfTfoot props and inline Text
This commit is contained in:
@@ -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>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user