Skip to content

Commit 39d5834

Browse files
committed
Remove unused useLocation hook from Header component to streamline code and improve clarity.
1 parent db2fe61 commit 39d5834

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/layout/Header.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { useEffect, useRef, useState } from 'react';
2-
import { useLocation } from 'react-router-dom';
32
import { User } from '../../services/auth';
43

54
interface HeaderProps {
@@ -47,8 +46,6 @@ export function Header({ title = 'Vitruvius Modeler', user, onLogout }: HeaderPr
4746
};
4847
}, [isMenuOpen]);
4948

50-
const location = useLocation();
51-
5249
return (
5350
<header className="header-responsive" style={{
5451
height: 48,

0 commit comments

Comments
 (0)