From 5e1a10f61708dc25221ffcb334b4ae432607e4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Tue, 6 Dec 2022 00:52:34 +0100 Subject: [PATCH] Fix custom table row styling --- website/src/components/table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/src/components/table.js b/website/src/components/table.js index f9755189d..ef004d85a 100644 --- a/website/src/components/table.js +++ b/website/src/components/table.js @@ -12,17 +12,17 @@ function isNum(children) { } function isDividerRow(children) { - if (children.length && children[0].props && children[0].props.name == 'td') { + if (children.length && children[0].props && children[0].type.name == 'Td') { const tdChildren = children[0].props.children if (tdChildren && !Array.isArray(tdChildren) && tdChildren.props) { - return tdChildren.props.name === 'em' + return tdChildren.type === 'em' } } return false } function isFootRow(children) { - if (children.length && children[0].props.name === 'td') { + if (children.length && children[0].type.name === 'Td') { const cellChildren = children[0].props.children if ( cellChildren &&