mirror of
https://github.com/RealKai42/qwerty-learner.git
synced 2026-04-05 14:29:04 +08:00
fix(error_book): correct WordPronunciationIcon props for pronunciation functionality (#824)
- Added missing `lang` prop and corrected `word` prop type in `WordPronunciationIcon` component - Ensured that the pronunciation feature works correctly by passing the correct language and word data - Resolved issue where clicking on the pronunciation button played an "undefined" sound
This commit is contained in:
@@ -79,7 +79,8 @@ const RowDetail: React.FC<RowDetailProps> = ({ currentRowDetail, allRecords }) =
|
||||
{word ? <Phonetic word={word} /> : <LoadingWordUI isLoading={isLoading} hasError={hasError} />}
|
||||
{word && (
|
||||
<WordPronunciationIcon
|
||||
word={word.name}
|
||||
lang={dictInfo.language}
|
||||
word={word}
|
||||
className="absolute -right-7 top-1/2 h-5 w-5 -translate-y-1/2 transform "
|
||||
ref={wordPronunciationIconRef}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user