Fix type assertion for spring animation in ThemeSwitch component

This commit is contained in:
Marco Pedone 2025-08-06 15:43:16 +02:00
parent 3b3a7c239d
commit 795cf99d9c

View file

@ -1,12 +1,12 @@
import { Moon, Sun } from "lucide-react";
import { useTheme } from "next-themes";
import { motion } from "framer-motion";
import { motion, type Transition } from "framer-motion";
import { cn } from "~/lib/utils";
export const ThemeSwitch = () => {
const { theme, setTheme } = useTheme();
const spring = {
const spring: Transition = {
type: "spring",
stiffness: 700,
damping: 30,