Skip to content

Commit

Permalink
(#8) Styling: impl. arbitrary loading time
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed Mar 29, 2022
1 parent 0994d5a commit a3a7929
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pages/draw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ class Draw extends React.Component<DrawProps, DrawState> {
this.addPonixToStorage(p);
}

this.setState({
stage: isPonixEmpty(p) ? "failed" : "success",
ponix: p,
});
setTimeout(() => {
this.setState({
stage: isPonixEmpty(p) ? "failed" : "success",
ponix: p,
});
}, 2 * 1000);
});
};

Expand Down

0 comments on commit a3a7929

Please sign in to comment.