Skip to content

Commit bb2eeda

Browse files
fix: add as const to framer-motion ease arrays
Co-Authored-By: martyy-code <nesalia.inc@gmail.com>
1 parent 28f76d4 commit bb2eeda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Link from 'next/link';
55
import { Button } from '@/components/ui/button';
66
import { motion } from 'framer-motion';
77

8-
const transition = { duration: 0.6, ease: [0.16, 1, 0.3, 1] };
8+
const transition = { duration: 0.6, ease: [0.16, 1, 0.3, 1] as const };
99
const containerVariants = {
1010
hidden: { opacity: 0 },
1111
show: {

src/app/projects/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default async function ProjectLandingPage({ params }: { params: Promise<{
3232
className="max-w-2xl"
3333
initial={{ opacity: 0, y: 20 }}
3434
animate={{ opacity: 1, y: 0 }}
35-
transition={{ duration: 0.6, ease: [0.16, 1, 0.3, 1] }}
35+
transition={{ duration: 0.6, ease: [0.16, 1, 0.3, 1] as const }}
3636
>
3737
<h1 className="text-4xl md:text-6xl font-bold tracking-tighter mb-6">{module.name}</h1>
3838
<p className="text-xl md:text-2xl text-foreground font-medium mb-4">{module.tagline}</p>

0 commit comments

Comments
 (0)