From d664ddc9b84b25922239e3bbc253b35ea54f2533 Mon Sep 17 00:00:00 2001
From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
Date: Sun, 3 Jan 2021 05:47:07 +0300
Subject: Fixes Preexisting Linting Issues

Fixes all errors, and most warnings generated by eslint. Most were fixed
 by eslint automatically such as indentation and quotes.

Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
---
 src/pages/FormPage.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/pages/FormPage.tsx')

diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx
index 97ff24d..1805897 100644
--- a/src/pages/FormPage.tsx
+++ b/src/pages/FormPage.tsx
@@ -12,7 +12,7 @@ interface PathParams {
     id: string
 }
 
-function FormPage() {
+function FormPage(): JSX.Element {
     const { id } = useParams<PathParams>();
 
     const [form, setForm] = useState<Form>();
@@ -20,11 +20,11 @@ function FormPage() {
     useEffect(() => {
         getForm(id).then(form => {
             setForm(form);
-        })
-    })
+        });
+    });
 
     if (!form) {
-        return <Loading/>
+        return <Loading/>;
     }
 
     return <div>
@@ -33,7 +33,7 @@ function FormPage() {
             <h1>{form.description}</h1>
             <Link to="/" css={{color: "white"}}>Return home</Link>
         </div>
-    </div>
+    </div>;
 }
 
 export default FormPage;
-- 
cgit v1.2.3

