Skip to content

Commit

Permalink
refactor(ui): simplify table stripes style (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapette authored and tchiotludo committed Apr 4, 2023
1 parent 6d05f5b commit 4e81077
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions client/src/components/Table/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,8 @@ class Table extends Component {
</td>
</tr>
);
} else {
return noContent;
}
return noContent;
}
return (
<tr>
Expand Down Expand Up @@ -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 (
<div className="table-responsive">
<table className={classNames}>
<table className={`table table-bordered table-hover mb-0 ${stripesStyle}`}>
{this.renderHeader()}
<tbody>
{loading
Expand Down

0 comments on commit 4e81077

Please sign in to comment.