Update import statements, set TTSEnabled in TTSModeSettings, and fix fetchChatModels error handling

This commit is contained in:
n4ze3m
2024-04-13 14:25:09 +05:30
parent a3810cd534
commit 9262a5bb7c
6 changed files with 24 additions and 17 deletions

View File

@@ -75,14 +75,6 @@ export const useMessageOption = () => {
const navigate = useNavigate()
const textareaRef = React.useRef<HTMLTextAreaElement>(null)
React.useEffect(() => {
const checkTTSEnabled = async () => {
const tts = await isTTSEnabled()
setTTSEnabled(tts)
}
checkTTSEnabled()
}, [])
const clearChat = () => {
navigate("/")