diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-04 17:27:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-04 17:27:11 -0700 |
commit | 7f2ed6a7e12d3cc34f29685128245143967ebb8a (patch) | |
tree | 54db428a0799c6e9d396b00dd019836ff2e52af6 /modern/src | |
parent | df3254688a643cd96280beb62d4f158f1f4d0dd7 (diff) | |
download | trackermap-web-7f2ed6a7e12d3cc34f29685128245143967ebb8a.tar.gz trackermap-web-7f2ed6a7e12d3cc34f29685128245143967ebb8a.tar.bz2 trackermap-web-7f2ed6a7e12d3cc34f29685128245143967ebb8a.zip |
Fix lint issues
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/common/useQuery.js | 6 | ||||
-rw-r--r-- | modern/src/components/registration/ResetPasswordForm.js | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/modern/src/common/useQuery.js b/modern/src/common/useQuery.js index 6c8ac657..92398bf8 100644 --- a/modern/src/common/useQuery.js +++ b/modern/src/common/useQuery.js @@ -1,5 +1,3 @@ -import { useLocation } from "react-router-dom"; +import { useLocation } from 'react-router-dom'; -export default () => { - return new URLSearchParams(useLocation().search); -} +export default () => new URLSearchParams(useLocation().search); diff --git a/modern/src/components/registration/ResetPasswordForm.js b/modern/src/components/registration/ResetPasswordForm.js index dfe2b5ef..a3b29f2a 100644 --- a/modern/src/components/registration/ResetPasswordForm.js +++ b/modern/src/components/registration/ResetPasswordForm.js @@ -79,7 +79,8 @@ const ResetPasswordForm = () => { </Grid> </Grid> {!token - ? <Grid item> + ? ( + <Grid item> <TextField required fullWidth @@ -92,7 +93,9 @@ const ResetPasswordForm = () => { variant="filled" /> </Grid> - : <Grid item> + ) + : ( + <Grid item> <TextField required fullWidth @@ -105,7 +108,7 @@ const ResetPasswordForm = () => { variant="filled" /> </Grid> - } + )} <Grid item> <Button variant="contained" |