fix prop names (#6130)

This commit is contained in:
Hailey
2024-11-06 09:47:51 -08:00
committed by GitHub
parent f95acdc836
commit 324c5a44a5
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -39,15 +39,15 @@ export function CountWheel({
likeCount,
big,
isLiked,
isToggle,
hasBeenToggled,
}: {
likeCount: number
big?: boolean
isLiked: boolean
isToggle: boolean
hasBeenToggled: boolean
}) {
const t = useTheme()
const shouldAnimate = !useReducedMotion() && isToggle
const shouldAnimate = !useReducedMotion() && hasBeenToggled
const shouldRoll = decideShouldRoll(isLiked, likeCount)
const countView = React.useRef<HTMLDivElement>(null)
+3 -3
View File
@@ -41,15 +41,15 @@ const circle2Keyframe = [
export function AnimatedLikeIcon({
isLiked,
big,
isToggle,
hasBeenToggled,
}: {
isLiked: boolean
big?: boolean
isToggle: boolean
hasBeenToggled: boolean
}) {
const t = useTheme()
const size = big ? 22 : 18
const shouldAnimate = !useReducedMotion() && isToggle
const shouldAnimate = !useReducedMotion() && hasBeenToggled
const prevIsLiked = React.useRef(isLiked)
const likeIconRef = React.useRef<HTMLDivElement>(null)