diff --git a/src/features/AppBar/AppBar.tsx b/src/features/AppBar/AppBar.tsx index 96ff67f5..ab987f5a 100644 --- a/src/features/AppBar/AppBar.tsx +++ b/src/features/AppBar/AppBar.tsx @@ -1,12 +1,12 @@ import { TopBar } from '@equinor/eds-core-react'; -import { useNavigate } from 'react-router-dom'; +import { useLocation, useNavigate } from 'react-router-dom'; import * as Styled from './AppBar.styled'; import { Icons } from './Icons/Icons'; import { Navigation } from './Navigation/Navigation'; - const AppBar = ({ title }: { title: string }) => { const navigate = useNavigate(); - + const location = useLocation(); + console.log(location.pathname); return (