aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/FormPage.tsx
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-01-03 05:47:07 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-01-03 05:47:07 +0300
commitd664ddc9b84b25922239e3bbc253b35ea54f2533 (patch)
treef1892f7e9b0880826b28a503aea312a97b0ea3a2 /src/pages/FormPage.tsx
parentAdds EsLint (diff)
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 <[email protected]>
Diffstat (limited to 'src/pages/FormPage.tsx')
-rw-r--r--src/pages/FormPage.tsx10
1 files changed, 5 insertions, 5 deletions
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;