Skip to content

Commit

Permalink
feat: enable back button and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Blumendorf committed Jan 6, 2025
1 parent 55ec180 commit b286f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react';
import { Link, useLocation } from 'react-router-dom';
import { Link } from 'react-router-dom';

const DarkModeIcon = () => (
<svg
Expand All @@ -25,7 +25,6 @@ const DarkModeIcon = () => (

export default function Navbar() {
const [isMenuOpen, setIsMenuOpen] = useState(false);
const location = useLocation();

useEffect(() => {
// Check local storage on mount, default to dark mode if not set
Expand Down

0 comments on commit b286f9a

Please sign in to comment.