This commit is contained in:
2025-11-22 09:24:08 +08:00
parent e8f5ce9751
commit 7bf3fd9b17
3 changed files with 2 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
import { Center } from "@/components/Center"; import { Center } from "@/components/Center";
import { text_pair } from "../../../../generated/prisma/browser"; import { text_pair } from "../../../../generated/prisma/browser";
import Container from "@/components/cards/Container"; import Container from "@/components/cards/Container";
import { useEffect, useRef, useState } from "react"; import { useEffect, useState } from "react";
import LightButton from "@/components/buttons/LightButton"; import LightButton from "@/components/buttons/LightButton";
import { useAudioPlayer } from "@/hooks/useAudioPlayer"; import { useAudioPlayer } from "@/hooks/useAudioPlayer";
import { getTTSAudioUrl } from "@/lib/browser/tts"; import { getTTSAudioUrl } from "@/lib/browser/tts";

View File

@@ -23,7 +23,7 @@ const FolderSelector: React.FC<FolderSelectorProps> = ({
getFoldersByOwner(username) getFoldersByOwner(username)
.then(setFolders) .then(setFolders)
.then(() => setLoading(false)); .then(() => setLoading(false));
}, []); }, [username]);
return ( return (
<div <div

View File

@@ -50,11 +50,6 @@ export default function HomePage() {
description={t("textSpeaker.description")} description={t("textSpeaker.description")}
color="#578aad" color="#578aad"
></LinkArea> ></LinkArea>
{/* <LinkArea
href="/word-board"
name="词墙"
description="将单词固定到一片区域,高效便捷地记忆单词"
color="#e9b353"></LinkArea> */}
<LinkArea <LinkArea
href="/srt-player" href="/srt-player"
name={t("srtPlayer.name")} name={t("srtPlayer.name")}