diff --git a/packages/legacy/core/App/components/buttons/ToggleButton.tsx b/packages/legacy/core/App/components/buttons/ToggleButton.tsx index 2dcf1def5c..88ee2e3287 100644 --- a/packages/legacy/core/App/components/buttons/ToggleButton.tsx +++ b/packages/legacy/core/App/components/buttons/ToggleButton.tsx @@ -28,7 +28,7 @@ const ToggleButton: React.FC = ({ useEffect(() => { Animated.timing(toggleAnim, { toValue: isEnabled ? 1 : 0, - duration: 200, + duration: 150, useNativeDriver: false, }).start() }, [isEnabled, toggleAnim]) @@ -88,4 +88,4 @@ const ToggleButton: React.FC = ({ ) } -export default ToggleButton +export default React.memo(ToggleButton);