1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-01-11 02:22:55 -05:00

less resource-intensive methods of parsing URLs

This commit is contained in:
2022-06-01 18:40:57 -04:00
parent d1ee8b2632
commit 33c210aacf
16 changed files with 195 additions and 188 deletions

View File

@@ -30,7 +30,7 @@ const ThemeToggle = ({ className }: ThemeToggleProps) => {
const maskId = useId(); // SSR-safe ID to cross-reference areas of the SVG
// default to light since `activeTheme` might be undefined
const safeTheme = activeTheme === "dark" ? "dark" : "light";
const safeTheme = activeTheme === "dark" ? activeTheme : "light";
// accessibility: skip animation if user prefers reduced motion
useEffect(() => {