feat(electron): recording popup ux (#11403)

fix AF-2444, AF-2443
This commit is contained in:
pengx17
2025-04-02 14:17:52 +00:00
parent 2adb8e1404
commit 90c3c4bf7f
4 changed files with 15 additions and 3 deletions

View File

@@ -25,6 +25,14 @@ const PlayAndPauseIcon = ({
const lottieRef: LottieRef = useRef(null);
const prevStateRef = useRef(state);
useEffect(() => {
if (!lottieRef.current) return;
const lottie = lottieRef.current;
if (prevStateRef.current === 'pause') {
lottie.goToAndStop(100, true);
}
}, []);
useEffect(() => {
if (!lottieRef.current) return;
const lottie = lottieRef.current;