Compare commits
2 Commits
wuxichen
...
ae8e5cf384
| Author | SHA1 | Date | |
|---|---|---|---|
| ae8e5cf384 | |||
| fc789b135f |
@@ -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 { Avatar, Divider, Space, SpinLoading, Toast } from "antd-mobile";
|
||||||
import { VoiceIcon } from "@workspace/shared";
|
import { VoiceIcon } from "@workspace/shared";
|
||||||
import { Message } from "../../../types";
|
import { Message } from "../../../types";
|
||||||
@@ -14,7 +14,6 @@ interface DefinedProps {
|
|||||||
function Index(props: DefinedProps) {
|
function Index(props: DefinedProps) {
|
||||||
const { data, isRecording } = props;
|
const { data, isRecording } = props;
|
||||||
const audioRefs = useRef<{ [key: string]: HTMLAudioElement }>({});
|
const audioRefs = useRef<{ [key: string]: HTMLAudioElement }>({});
|
||||||
const [isPlaying, setIsPlating] = useState(false);
|
|
||||||
const [currentPlayingId, setCurrentPlayingId] = useState<number>();
|
const [currentPlayingId, setCurrentPlayingId] = useState<number>();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user