Skip to content

Commit

Permalink
Merge pull request #178 from doerfli/dependabot/npm_and_yarn/typescri…
Browse files Browse the repository at this point in the history
…pt-eslint/eslint-plugin-6.6.0

Bump @typescript-eslint/eslint-plugin from 5.60.1 to 6.6.0
  • Loading branch information
doerfli committed Sep 8, 2023
2 parents 268f478 + 3a32fa5 commit 903babb
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 378 deletions.
9 changes: 4 additions & 5 deletions components/challenge.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { useContext } from "react";
import dynamic from 'next/dynamic'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import InputBlock from "./input_block";
import { Operation } from "../models/challenge_specification";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import dynamic from 'next/dynamic';
import { useSelector } from "react-redux";
import { Operation } from "../models/challenge_specification";
import { RootState } from "../redux/store";
import InputBlock from "./input_block";

const ResultInput = dynamic(
() => import('./result_input/result_input'),
Expand Down
4 changes: 2 additions & 2 deletions components/input_block.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from "react";
import React from "react";
import NumberElement, { NumberElementType } from "./number/number_element";

interface NumberBlockProps {
type?: NumberElementType;
number: number;
icon: string;
class?: string;
onClickHandler?: any;
onClickHandler?: () => React.MouseEventHandler<HTMLDivElement>;
}

export default function InputBlock(props: NumberBlockProps) {
Expand Down
2 changes: 1 addition & 1 deletion components/number/icon_block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface IconBlockProps {
colorClass: string;
number: number;
class?: string;
onClickHandler?: any;
onClickHandler?: React.MouseEventHandler<HTMLDivElement>;
}

export default function IconBlock(props: IconBlockProps) {
Expand Down
2 changes: 1 addition & 1 deletion components/number/number_block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface NumberBlockProps {
colorClass: string;
number: number;
class?: string;
onClickHandler?: any;
onClickHandler?: React.MouseEventHandler<HTMLDivElement>;
}

export default function NumberBlock(props: NumberBlockProps) {
Expand Down
2 changes: 1 addition & 1 deletion components/number/number_element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface NumberElementProps {
icon: string;
colorClass: string;
class?: string;
onClickHandler?: any;
onClickHandler?: React.MouseEventHandler<HTMLDivElement>;
}

export default function NumberElement(props: NumberElementProps) {
Expand Down
7 changes: 3 additions & 4 deletions components/result_input/result_input.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { useContext } from "react";
import { ResultSelectorType } from "../../models/challenge_specification";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import MultipleChoiceSelector from "./multiple_choice_icon_input";
import NumberEntrySelector from "./digit_input";
import { useSelector } from "react-redux";
import { ResultSelectorType } from "../../models/challenge_specification";
import { RootState } from "../../redux/store";
import NumberEntrySelector from "./digit_input";
import MultipleChoiceSelector from "./multiple_choice_icon_input";

interface ResultInputProps {
onSuccess: (correct: boolean) => void;
Expand Down
Loading

0 comments on commit 903babb

Please sign in to comment.