From 94cc4d9a42ca985074f903496684403f7d06b958 Mon Sep 17 00:00:00 2001 From: mheggelund Date: Mon, 29 Jan 2024 10:03:46 +0100 Subject: [PATCH] fix: troubleshooting refresh error --- src/features/AppBar/AppBar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 (