diff options
| author | jackyzha0 <[email protected]> | 2020-05-11 23:15:07 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-11 23:15:07 -0700 |
| commit | a1d00c1f90e35f2fb3e33cd51cc30b5e6a44f6ac (patch) | |
| tree | 6dc61b6dc58dbea8113fa10f4121c9fcb124a7d5 /frontend/src/components/NewPaste.js | |
| parent | fix readonly + fields + mount err (diff) | |
| download | ctrl-v-a1d00c1f90e35f2fb3e33cd51cc30b5e6a44f6ac.tar.xz ctrl-v-a1d00c1f90e35f2fb3e33cd51cc30b5e6a44f6ac.zip | |
fmt info component
Diffstat (limited to 'frontend/src/components/NewPaste.js')
| -rw-r--r-- | frontend/src/components/NewPaste.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js index fa2c997..3bdd41a 100644 --- a/frontend/src/components/NewPaste.js +++ b/frontend/src/components/NewPaste.js @@ -21,11 +21,11 @@ class NewPaste extends React.Component { this.handleSubmit = this.handleSubmit.bind(this); } - newErr(msg) { + newErr(msg, duration = 5000) { this.setState({ error: msg }) setTimeout(() => { this.setState({ error: '' }) - }, 3000); + }, duration); } renderRedirect = () => { |