aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/FormPage.tsx
diff options
context:
space:
mode:
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;