Skip to content

Commit

Permalink
fix: show spinner in table view
Browse files Browse the repository at this point in the history
  • Loading branch information
akuokojnr committed Apr 21, 2021
1 parent 576dae6 commit c9dd8ab
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions components/core/DataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,17 +925,26 @@ export default class DataView extends React.Component {
...each,
checkbox: (
<div onClick={(e) => this._handleCheckBox(e, index)}>
<CheckBox
name={index}
value={!!this.state.checked[index]}
boxStyle={{ height: 16, width: 16 }}
style={{
position: "relative",
right: 3,
margin: "12px 0",
opacity: numChecked > 0 || this.state.hover === index ? "100%" : "0%",
}}
/>
{each.decorator.startsWith("OPTIMISTIC") ? (
<LoaderSpinner
style={{
height: 20,
width: 20,
}}
/>
) : (
<CheckBox
name={index}
value={!!this.state.checked[index]}
boxStyle={{ height: 16, width: 16 }}
style={{
position: "relative",
right: 3,
margin: "12px 0",
opacity: numChecked > 0 || this.state.hover === index ? "100%" : "0%",
}}
/>
)}
</div>
),
name: (
Expand Down

0 comments on commit c9dd8ab

Please sign in to comment.