Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: optimistic file upload #717

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix: show spinner in table view
  • Loading branch information
akuokojnr committed Apr 26, 2021
commit 9e4de33805e831afddd8b7d6df940a6a7740aac6
31 changes: 20 additions & 11 deletions components/core/DataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -910,17 +910,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