Skip to content

Commit 8d656e0

Browse files
committed
Eslint on new changes
1 parent ada271c commit 8d656e0

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/components/PrecheckBox.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @jsx jsx */
2-
import { css, jsx } from "@emotion/react";
2+
import { jsx } from "@emotion/react";
33
import styled from "@emotion/styled";
44

55
interface PrecheckProps {
@@ -11,10 +11,10 @@ const BACKGROUNDS = {
1111
secondary: "#7e7c7cff",
1212
warning: "#a09b53ff",
1313
danger: "#b4747aff"
14-
}
14+
};
1515

1616
interface PrecheckBoxProps {
17-
severity: PrecheckProps['severity']
17+
severity: PrecheckProps["severity"]
1818
}
1919

2020

src/components/Question.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class RenderedQuestion extends React.Component<QuestionProp> {
295295
let text;
296296

297297
if (data && typeof(data) === "string") {
298-
text = <ReactMarkdown>{data}</ReactMarkdown>
298+
text = <ReactMarkdown>{data}</ReactMarkdown>;
299299
} else {
300300
text = "";
301301
}

src/pages/FormPage/FormPage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ import RenderedQuestion from "../../components/Question";
1212
import Loading from "../../components/Loading";
1313
import ScrollToTop from "../../components/ScrollToTop";
1414

15-
import {Form, FormFeatures, FormWithAncillaryData, getForm} from "../../api/forms";
15+
import {FormFeatures, FormWithAncillaryData, getForm} from "../../api/forms";
1616
import {OAuthScopes} from "../../api/auth";
17-
import colors from "../../colors";
1817
import {unselectable} from "../../commonStyles";
1918

2019
import handleSubmit, {FormState} from "./submit";

src/pages/FormPage/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Navigation(props: NavigationProps): JSX.Element {
2424
} else {
2525
innerElement = <button disabled={!props.can_submit} form="form" type="submit">Submit</button>;
2626
}
27-
let submit = <div css={styles.actionButtonStyles}>{innerElement}</div>;
27+
const submit = <div css={styles.actionButtonStyles}>{innerElement}</div>;
2828

2929
return (
3030
<div css={[styles.unselectable, styles.mainTextStyles]}>

0 commit comments

Comments
 (0)