diff --git a/src/components/Logo.test.tsx b/src/components/Logo.test.tsx deleted file mode 100644 index e19b8c5ee..000000000 --- a/src/components/Logo.test.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { fireEvent, render, screen } from '@testing-library/react'; -import { Logo } from './Logo'; - -describe('components/Logo.tsx', () => { - it('renders correctly (light)', () => { - const tree = render(); - - expect(tree).toMatchSnapshot(); - }); - - it('renders correctly(dark)', () => { - const tree = render(); - - expect(tree).toMatchSnapshot(); - }); - - it('should click on the logo', () => { - const onClick = jest.fn(); - render(); - - fireEvent.click(screen.getByLabelText('Gitify Logo')); - - expect(onClick).toHaveBeenCalledTimes(1); - }); -}); diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 6e64fea0d..7548f79f9 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -8,7 +8,6 @@ import { } from '@primer/octicons-react'; import { type FC, useContext, useMemo } from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; -import { Logo } from '../components/Logo'; import { AppContext } from '../context/App'; import { quitApp } from '../utils/comms'; import { @@ -19,6 +18,7 @@ import { } from '../utils/links'; import { getNotificationCount } from '../utils/notifications'; import { SidebarButton } from './buttons/SidebarButton'; +import { LogoIcon } from './icons/LogoIcon'; export const Sidebar: FC = () => { const navigate = useNavigate(); @@ -49,12 +49,12 @@ export const Sidebar: FC = () => {
@@ -303,11 +303,11 @@ exports[`components/AccountNotifications.tsx should render itself (github.com wi focusable="false" height="14" style="display: inline-block; user-select: none; vertical-align: text-bottom; overflow: visible;" - viewBox="0 0 12 12" + viewBox="0 0 16 16" width="14" > diff --git a/src/components/__snapshots__/Sidebar.test.tsx.snap b/src/components/__snapshots__/Sidebar.test.tsx.snap index a4e4df9bf..e16d94651 100644 --- a/src/components/__snapshots__/Sidebar.test.tsx.snap +++ b/src/components/__snapshots__/Sidebar.test.tsx.snap @@ -12,14 +12,14 @@ exports[`components/Sidebar.tsx should render itself & its children (logged in) class="flex flex-1 flex-col items-center py-4" >