From 8e0b8d8088af5b4ee14a2e5f5e25e17813261ec0 Mon Sep 17 00:00:00 2001 From: mheggelund Date: Mon, 29 Jan 2024 10:28:52 +0100 Subject: [PATCH] fix: log path for troubleshooting --- src/features/AppBar/AppBar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/AppBar/AppBar.tsx b/src/features/AppBar/AppBar.tsx index 96ff67f5..5d7e34b3 100644 --- a/src/features/AppBar/AppBar.tsx +++ b/src/features/AppBar/AppBar.tsx @@ -1,11 +1,13 @@ 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 (