Skip to content

Commit

Permalink
fix: log path for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Jan 29, 2024
1 parent d4bc48c commit 8e0b8d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/AppBar/AppBar.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Styled.TopBar>
Expand Down

0 comments on commit 8e0b8d8

Please sign in to comment.