website refactor
This commit is contained in:
@@ -235,7 +235,7 @@ function AnimatedRating({ shouldReduceMotion, value }: { shouldReduceMotion: boo
|
||||
|
||||
return (
|
||||
<Stack as={motion.span} weight="bold" color="text-primary-accent" font="mono" size={{ base: 'sm', sm: 'base' }}>
|
||||
{shouldReduceMotion ? value : <Stack as={motion.span}>{rounded}</Stack>}
|
||||
{shouldReduceMotion ? value : <motion.span>{rounded}</motion.span>}
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
@@ -265,7 +265,7 @@ function AnimatedCounter({
|
||||
|
||||
return (
|
||||
<Stack weight="bold" color="text-white" font="mono" size={{ base: 'sm', sm: 'base', md: 'lg' }}>
|
||||
{shouldReduceMotion ? value : <Stack as={motion.span}>{rounded}</Stack>}{suffix}
|
||||
{shouldReduceMotion ? value : <motion.span>{rounded}</motion.span>}{suffix}
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ function AnimatedPoints({
|
||||
weight="bold"
|
||||
color="text-white"
|
||||
>
|
||||
{shouldReduceMotion ? points : <Stack as={motion.span}>{spring}</Stack>}
|
||||
{shouldReduceMotion ? points : <motion.span>{spring}</motion.span>}
|
||||
</Stack>
|
||||
</Stack>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user