Skip to content

Commit

Permalink
Merge branch 'main' into feat/report-functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce McMath <[email protected]>
  • Loading branch information
bryce-mcmath committed Dec 13, 2024
2 parents 8e7cce6 + 42b56e6 commit 8168ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/legacy/core/App/components/buttons/ToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ToggleButton: React.FC<ToggleButtonProps> = ({
useEffect(() => {
Animated.timing(toggleAnim, {
toValue: isEnabled ? 1 : 0,
duration: 200,
duration: 150,
useNativeDriver: false,
}).start()
}, [isEnabled, toggleAnim])
Expand Down Expand Up @@ -88,4 +88,4 @@ const ToggleButton: React.FC<ToggleButtonProps> = ({
)
}

export default ToggleButton
export default React.memo(ToggleButton);

0 comments on commit 8168ca2

Please sign in to comment.