Skip to content

Commit

Permalink
fix: remove unused event handler (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
a2937 authored Aug 13, 2024
1 parent 95810de commit 0897ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/components/QuizTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,7 @@ const QuizTemplate: React.FC = () => {
path="/"
element={
<SelectCategory
selectQuizNumber={(
e: React.MouseEvent<HTMLButtonElement, MouseEvent>,
category: string
) => selectQuiz(category, 0)}
selectQuizNumber={(category: string) => selectQuiz(category, 0)}
category={selectedCategory}
selectQuiz={selectQuiz}
startRandomQuiz={startRandomQuiz}
Expand Down
5 changes: 1 addition & 4 deletions src/components/SelectCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { CATEGORIES } from "../constants";
interface SelectCategoryProps {
category: string;
selectQuiz: (category: string, index: number) => void;
selectQuizNumber: (
e: React.MouseEvent<HTMLButtonElement, MouseEvent>,
category: string
) => void;
selectQuizNumber: (category: string) => void;
startRandomQuiz: () => void;
}

Expand Down

0 comments on commit 0897ec5

Please sign in to comment.