From 006ee98226230467a0312c79ef1f262535432e92 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sun, 1 Sep 2024 01:34:12 -0700 Subject: [PATCH] fix merge --- src/lib/custom-animations/CountWheel.tsx | 5 ++--- src/lib/custom-animations/CountWheel.web.tsx | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/custom-animations/CountWheel.tsx b/src/lib/custom-animations/CountWheel.tsx index 780d64cca5..ccc30c2146 100644 --- a/src/lib/custom-animations/CountWheel.tsx +++ b/src/lib/custom-animations/CountWheel.tsx @@ -6,7 +6,6 @@ import Animated, { useReducedMotion, withTiming, } from 'react-native-reanimated' -import {i18n} from '@lingui/core' import {decideShouldRoll} from 'lib/custom-animations/util' import {s} from 'lib/styles' @@ -119,8 +118,8 @@ export function CountWheel({ prevIsLiked.current = isLiked }, [isLiked, likeCount]) - const formattedCount = formatCount(i18n, likeCount) - const formattedPrevCount = formatCount(i18n, prevCount) + const formattedCount = formatCount(likeCount) + const formattedPrevCount = formatCount(prevCount) const enteringAnimation = shouldAnimate && shouldRoll diff --git a/src/lib/custom-animations/CountWheel.web.tsx b/src/lib/custom-animations/CountWheel.web.tsx index c4ea650182..bf9ad45be2 100644 --- a/src/lib/custom-animations/CountWheel.web.tsx +++ b/src/lib/custom-animations/CountWheel.web.tsx @@ -1,7 +1,6 @@ import React from 'react' import {View} from 'react-native' import {useReducedMotion} from 'react-native-reanimated' -import {i18n} from '@lingui/core' import {decideShouldRoll} from 'lib/custom-animations/util' import {s} from 'lib/styles' @@ -74,8 +73,8 @@ export function CountWheel({ prevIsLiked.current = isLiked }, [isLiked, likeCount, shouldAnimate, shouldRoll]) - const formattedCount = formatCount(i18n, likeCount) - const formattedPrevCount = formatCount(i18n, prevCount) + const formattedCount = formatCount(likeCount) + const formattedPrevCount = formatCount(prevCount) return (