aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-04 17:27:11 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-04 17:27:11 -0700
commit7f2ed6a7e12d3cc34f29685128245143967ebb8a (patch)
tree54db428a0799c6e9d396b00dd019836ff2e52af6 /modern/src
parentdf3254688a643cd96280beb62d4f158f1f4d0dd7 (diff)
downloadetbsa-traccar-web-7f2ed6a7e12d3cc34f29685128245143967ebb8a.tar.gz
etbsa-traccar-web-7f2ed6a7e12d3cc34f29685128245143967ebb8a.tar.bz2
etbsa-traccar-web-7f2ed6a7e12d3cc34f29685128245143967ebb8a.zip
Fix lint issues
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/common/useQuery.js6
-rw-r--r--modern/src/components/registration/ResetPasswordForm.js9
2 files changed, 8 insertions, 7 deletions
diff --git a/modern/src/common/useQuery.js b/modern/src/common/useQuery.js
index 6c8ac65..92398bf 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 dfe2b5e..a3b29f2 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"