From 7f2ed6a7e12d3cc34f29685128245143967ebb8a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 4 Sep 2021 17:27:11 -0700 Subject: Fix lint issues --- modern/src/common/useQuery.js | 6 ++---- modern/src/components/registration/ResetPasswordForm.js | 9 ++++++--- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'modern/src') 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 = () => { {!token - ? + ? ( + { variant="filled" /> - : + ) + : ( + { variant="filled" /> - } + )}