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

fix AF-2444, AF-2443
This commit is contained in:
pengx17 committed 2025-04-02 14:17:53 +00:00
1 parent 2adb8e1404
commit 90c3c4bf7f
4 files changed
+15 -3

No files matched your search

@@ -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;