fix prop names (#6130)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user