From 4e81077d8a6bbc1d837cf7301c942316875336c8 Mon Sep 17 00:00:00 2001 From: lucapette Date: Wed, 4 Jan 2023 10:01:02 +0100 Subject: [PATCH] refactor(ui): simplify table stripes style (#1326) --- client/src/components/Table/Table.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/src/components/Table/Table.jsx b/client/src/components/Table/Table.jsx index 22d5f64b5..e6308c282 100644 --- a/client/src/components/Table/Table.jsx +++ b/client/src/components/Table/Table.jsx @@ -473,9 +473,8 @@ class Table extends Component { ); - } else { - return noContent; } + return noContent; } return ( @@ -514,13 +513,11 @@ class Table extends Component { allItemRows = allItemRows.concat(perItemRows); }); - let classNames = 'table table-bordered table-hover mb-0'; - if (!noStripes) classNames += ' table-striped'; - if (noStripes) classNames += ' no-stripes'; + const stripesStyle = noStripes ? 'no-stripes' : 'table-striped'; return (
- +
{this.renderHeader()} {loading