Fix type assertion for spring animation in ThemeSwitch component
This commit is contained in:
parent
3b3a7c239d
commit
795cf99d9c
1 changed files with 2 additions and 2 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
import { Moon, Sun } from "lucide-react";
|
import { Moon, Sun } from "lucide-react";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
import { motion } from "framer-motion";
|
import { motion, type Transition } from "framer-motion";
|
||||||
import { cn } from "~/lib/utils";
|
import { cn } from "~/lib/utils";
|
||||||
|
|
||||||
export const ThemeSwitch = () => {
|
export const ThemeSwitch = () => {
|
||||||
const { theme, setTheme } = useTheme();
|
const { theme, setTheme } = useTheme();
|
||||||
|
|
||||||
const spring = {
|
const spring: Transition = {
|
||||||
type: "spring",
|
type: "spring",
|
||||||
stiffness: 700,
|
stiffness: 700,
|
||||||
damping: 30,
|
damping: 30,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue