mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE): Refactor PdfTable to use PdfThead/PdfTbody/PdfTfoot
This commit is contained in:
@@ -69,16 +69,6 @@ const styles = StyleSheet.create({
|
||||
fontSize: 7,
|
||||
textAlign: 'center',
|
||||
},
|
||||
badge: {
|
||||
paddingVertical: 2,
|
||||
paddingHorizontal: 4,
|
||||
borderRadius: 12,
|
||||
fontSize: 5,
|
||||
fontWeight: 'bold',
|
||||
borderWidth: 1,
|
||||
textAlign: 'center',
|
||||
whiteSpace: 'nowrap',
|
||||
},
|
||||
});
|
||||
|
||||
interface PdfTbodyProps {
|
||||
@@ -218,7 +208,7 @@ export const PdfTbody = ({
|
||||
cell?.value !== null &&
|
||||
cell?.value !== '' ? (
|
||||
typeof cell.value === 'object' ? (
|
||||
cell.value // For custom React element (badge, etc)
|
||||
cell.value
|
||||
) : (
|
||||
<Text>{String(cell.value)}</Text>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user