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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user