fix(typo):correct some typos

This commit is contained in:
eb
2021-02-24 13:11:09 +08:00
committed by KaiyiWing
parent fa7d450b0c
commit 8cbdc17d33
5 changed files with 15 additions and 5 deletions

12
.vscode/settings.json vendored
View File

@@ -4,5 +4,15 @@
},
"css.lint.unknownAtRules": "ignore",
"css.validate": false,
"files.eol": "\n"
"files.eol": "\n",
"cSpell.words": [
"alipay",
"esae",
"fontawesome",
"fortawesome",
"headlessui",
"ukphone",
"usphone",
"vercel"
]
}

View File

@@ -16,7 +16,7 @@ const Donate: React.FC<DonateProps> = ({ state, buttonOnclick, children }) => {
enter="ease-out duration-30"
enterFrom="opacity-0 "
enterTo="opacity-100 "
leave="esae-in duration-200"
leave="ease-in duration-200"
leaveFrom="opacity-100"
leaveTo="opacity-0"
>

View File

@@ -3,7 +3,7 @@ import Letter, { LetterState } from './Letter'
import { isLegal, isChineseSymbol } from '../../utils/utils'
import useSounds from 'hooks/useSounds'
import style from './index.module.css'
import usePronunciationSound from 'hooks/usePronouncation'
import usePronunciationSound from 'hooks/usePronunciation'
const Word: React.FC<WordProps> = ({ word = 'defaultWord', onFinish, isStart, wordVisible = true }) => {
word = word.replace(new RegExp(' ', 'g'), '_')

View File

@@ -17,7 +17,7 @@ export default function usePronunciationSound(word: string): PronounceFunction {
useEffect(() => {
audio?.play()
return () => {
// Pause the audio when unmount
// Pause the audio when unMount
audio?.pause()
}
}, [audio, word])

View File

@@ -11,7 +11,7 @@ export type AppState = {
*/
sound: boolean
/**
* Avaiable dictionaries.
* Available dictionaries.
* This field should not be written to `localStorage`.
*/
dictionaries: Dictionary[]