aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
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 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"