@freecodecamp/ui
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -8,4 +8,6 @@ import { type Question } from "./types"; | ||
}; | ||
onSuccess?: () => void; | ||
onFailure?: () => void; | ||
} | ||
export declare const useQuiz: ({ initialQuestions, validationMessages }: Props) => { | ||
export declare const useQuiz: ({ initialQuestions, validationMessages, onSuccess, onFailure, }: Props) => { | ||
questions: Question[]; | ||
@@ -12,0 +14,0 @@ validateAnswers: () => void; |
{ | ||
"name": "@freecodecamp/ui", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"author": "freeCodeCamp <team@freecodecamp.org>", | ||
@@ -79,3 +79,3 @@ "license": "BSD-3-Clause", | ||
"eslint-plugin-jsx-a11y": "6.10.0", | ||
"eslint-plugin-react": "7.36.1", | ||
"eslint-plugin-react": "7.37.0", | ||
"eslint-plugin-react-hooks": "4.6.2", | ||
@@ -82,0 +82,0 @@ "eslint-plugin-testing-library": "6.3.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3795590
2180