From 5e83330ba04971f46f8d2f7a8e3ad78d43b9faec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djobbo=20Ma=C3=AFga?= Date: Wed, 10 Apr 2024 17:07:27 +0200 Subject: [PATCH] rename checkKeyword to checkProunounciation --- components/Steps/KeywordChallenge.tsx | 4 +- util/checkKeyword.test.ts | 54 ------------------------- util/checkKeyword.ts | 19 --------- util/checkPronounciation.test.ts | 58 +++++++++++++++++++++++++++ util/checkPronounciation.ts | 25 ++++++++++++ 5 files changed, 85 insertions(+), 75 deletions(-) delete mode 100644 util/checkKeyword.test.ts delete mode 100644 util/checkKeyword.ts create mode 100644 util/checkPronounciation.test.ts create mode 100644 util/checkPronounciation.ts diff --git a/components/Steps/KeywordChallenge.tsx b/components/Steps/KeywordChallenge.tsx index 1e2f754..96e2b68 100644 --- a/components/Steps/KeywordChallenge.tsx +++ b/components/Steps/KeywordChallenge.tsx @@ -1,7 +1,7 @@ import { type KeywordChallengeStep } from "@/data/levels" import { useMemo, useState } from "react" import { Button } from "@/components/Button" -import { checkKeyword } from "@/util/checkKeyword" +import { checkPronounciation } from "@/util/checkPronounciation" type KeywordChallengeStepContentProps = { step: KeywordChallengeStep @@ -60,7 +60,7 @@ export const KeywordChallenge = ({