diff options
author | 2022-07-01 13:44:38 +0400 | |
---|---|---|
committer | 2022-07-01 13:44:38 +0400 | |
commit | b83dff712dfbdb521a0739aac34dd05bf3350a1e (patch) | |
tree | 4b2766dd3ed3c1d60c12ff35c9f8ca2a3039c0cc /src | |
parent | Improve ErrorMessage Interface (diff) |
Remove Unused Prop From ErrorPage
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/FormPage/ErrorPage.tsx | 2 | ||||
-rw-r--r-- | src/pages/FormPage/FormPage.tsx | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/pages/FormPage/ErrorPage.tsx b/src/pages/FormPage/ErrorPage.tsx index 3766181..9a7fad9 100644 --- a/src/pages/FormPage/ErrorPage.tsx +++ b/src/pages/FormPage/ErrorPage.tsx @@ -4,7 +4,6 @@ import {Link} from "react-router-dom"; import React from "react"; import HeaderBar from "../../components/HeaderBar"; -import RenderedQuestion from "../../components/Question"; import {Form} from "../../api/forms"; import {selectable, submitStyles, unselectable} from "../../commonStyles"; @@ -14,7 +13,6 @@ import Navigation from "./Navigation"; interface ErrorProps { form: Form - questions: RenderedQuestion[] message: string } diff --git a/src/pages/FormPage/FormPage.tsx b/src/pages/FormPage/FormPage.tsx index 1852c75..a67566d 100644 --- a/src/pages/FormPage/FormPage.tsx +++ b/src/pages/FormPage/FormPage.tsx @@ -120,7 +120,7 @@ function FormPage(): JSX.Element { case FormState.UNKNOWN_ERROR: return <ErrorPage - form={form} questions={questions} + form={form} message="An unknown error occurred, please contact the forms team or try again." />; } |