Skip to content

Commit

Permalink
feat: change icon to navigate home (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy authored Sep 17, 2024
1 parent 9742f20 commit 0f914d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/components/Sidebar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ describe('components/Sidebar.tsx', () => {
);

fireEvent.click(screen.getByTitle('Home'));
expect(fetchNotifications).toHaveBeenCalledTimes(1);
expect(mockNavigate).toHaveBeenNthCalledWith(1, '/', { replace: true });
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Sidebar: FC = () => {
<Button
title="Home"
appearance="subtle"
onClick={() => refreshNotifications()}
onClick={() => navigate('/', { replace: true })}
>
<AtlasIcon size="medium" appearance="inverse" />
</Button>
Expand Down

0 comments on commit 0f914d4

Please sign in to comment.