diff --git a/src/app/components/SocialLayout.tsx b/src/app/components/SocialLayout.tsx index 4db2296..be3a1d9 100644 --- a/src/app/components/SocialLayout.tsx +++ b/src/app/components/SocialLayout.tsx @@ -39,4 +39,4 @@ export const SocialLayout = memo(() => { ); }); -SocialLayout.displayName = "SocialLayout"; \ No newline at end of file +SocialLayout.displayName = "SocialLayout"; diff --git a/src/app/components/SpotifyCard.tsx b/src/app/components/SpotifyCard.tsx index 2f3b1d4..96dfe44 100644 --- a/src/app/components/SpotifyCard.tsx +++ b/src/app/components/SpotifyCard.tsx @@ -40,7 +40,7 @@ export const NowPlayingCard = () => { const spotify = useSpotify(); const progressPercentage = useMemo(() => { - if (spotify && spotify.is_playing && spotify.item) { + if (spotify?.is_playing && spotify.item) { return (spotify.progress_ms / spotify.item.duration_ms) * 100; } return 0; @@ -102,7 +102,7 @@ export const NowPlayingCard = () => { animate={{ width: `${progressPercentage}%` }} transition={{ duration: 0.3, ease: "easeInOut" }} > -
+ diff --git a/src/app/components/ThemeProvider.tsx b/src/app/components/ThemeProvider.tsx index c527cde..3029f07 100644 --- a/src/app/components/ThemeProvider.tsx +++ b/src/app/components/ThemeProvider.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; -import { type ThemeProviderProps } from "next-themes/dist/types"; +import type { ThemeProviderProps } from "next-themes/dist/types"; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { return