diff --git a/projects/translate-h5/src/view/home/translate/component/message/index.tsx b/projects/translate-h5/src/view/home/translate/component/message/index.tsx index 05a66b0..37dba2c 100644 --- a/projects/translate-h5/src/view/home/translate/component/message/index.tsx +++ b/projects/translate-h5/src/view/home/translate/component/message/index.tsx @@ -1,4 +1,4 @@ -import { useEffect, useRef, useState } from "react"; +import { useRef, useState } from "react"; import { Avatar, Divider, Space, SpinLoading, Toast } from "antd-mobile"; import { VoiceIcon } from "@workspace/shared"; import { Message } from "../../../types"; @@ -14,7 +14,6 @@ interface DefinedProps { function Index(props: DefinedProps) { const { data, isRecording } = props; const audioRefs = useRef<{ [key: string]: HTMLAudioElement }>({}); - const [isPlaying, setIsPlating] = useState(false); const [currentPlayingId, setCurrentPlayingId] = useState(); // useEffect(() => {