From 795cf99d9c88f9a6f565b522a4a99571105a72a4 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Wed, 6 Aug 2025 15:43:16 +0200 Subject: [PATCH] Fix type assertion for spring animation in ThemeSwitch component --- apps/infoalloggi/src/components/navbar/theme-toggle.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/infoalloggi/src/components/navbar/theme-toggle.tsx b/apps/infoalloggi/src/components/navbar/theme-toggle.tsx index 7f91c4a..5147355 100644 --- a/apps/infoalloggi/src/components/navbar/theme-toggle.tsx +++ b/apps/infoalloggi/src/components/navbar/theme-toggle.tsx @@ -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,