aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-08-08 23:31:21 +0100
committerGravatar Joe Banks <[email protected]>2025-08-08 23:31:21 +0100
commit8d656e056eb61b64c237ca8ece9482a6258e03f1 (patch)
tree655880609c2c9a08c857b3b5fac00123c9137c91
parentPass precheck data down tree for submission (diff)
Eslint on new changes
-rw-r--r--src/components/PrecheckBox.tsx6
-rw-r--r--src/components/Question.tsx2
-rw-r--r--src/pages/FormPage/FormPage.tsx3
-rw-r--r--src/pages/FormPage/Navigation.tsx2
4 files changed, 6 insertions, 7 deletions
diff --git a/src/components/PrecheckBox.tsx b/src/components/PrecheckBox.tsx
index 75a48eb..c45ffc2 100644
--- a/src/components/PrecheckBox.tsx
+++ b/src/components/PrecheckBox.tsx
@@ -1,5 +1,5 @@
/** @jsx jsx */
-import { css, jsx } from "@emotion/react";
+import { jsx } from "@emotion/react";
import styled from "@emotion/styled";
interface PrecheckProps {
@@ -11,10 +11,10 @@ const BACKGROUNDS = {
secondary: "#7e7c7cff",
warning: "#a09b53ff",
danger: "#b4747aff"
-}
+};
interface PrecheckBoxProps {
- severity: PrecheckProps['severity']
+ severity: PrecheckProps["severity"]
}
diff --git a/src/components/Question.tsx b/src/components/Question.tsx
index 1c3a986..f39b117 100644
--- a/src/components/Question.tsx
+++ b/src/components/Question.tsx
@@ -295,7 +295,7 @@ class RenderedQuestion extends React.Component<QuestionProp> {
let text;
if (data && typeof(data) === "string") {
- text = <ReactMarkdown>{data}</ReactMarkdown>
+ text = <ReactMarkdown>{data}</ReactMarkdown>;
} else {
text = "";
}
diff --git a/src/pages/FormPage/FormPage.tsx b/src/pages/FormPage/FormPage.tsx
index 0057ef8..a09b593 100644
--- a/src/pages/FormPage/FormPage.tsx
+++ b/src/pages/FormPage/FormPage.tsx
@@ -12,9 +12,8 @@ import RenderedQuestion from "../../components/Question";
import Loading from "../../components/Loading";
import ScrollToTop from "../../components/ScrollToTop";
-import {Form, FormFeatures, FormWithAncillaryData, getForm} from "../../api/forms";
+import {FormFeatures, FormWithAncillaryData, getForm} from "../../api/forms";
import {OAuthScopes} from "../../api/auth";
-import colors from "../../colors";
import {unselectable} from "../../commonStyles";
import handleSubmit, {FormState} from "./submit";
diff --git a/src/pages/FormPage/Navigation.tsx b/src/pages/FormPage/Navigation.tsx
index c5dfa4a..bf1567f 100644
--- a/src/pages/FormPage/Navigation.tsx
+++ b/src/pages/FormPage/Navigation.tsx
@@ -24,7 +24,7 @@ export default function Navigation(props: NavigationProps): JSX.Element {
} else {
innerElement = <button disabled={!props.can_submit} form="form" type="submit">Submit</button>;
}
- let submit = <div css={styles.actionButtonStyles}>{innerElement}</div>;
+ const submit = <div css={styles.actionButtonStyles}>{innerElement}</div>;
return (
<div css={[styles.unselectable, styles.mainTextStyles]}>