From 5f9e871837e4f06fa6ec567efc96c160eac9ab49 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 11 Mar 2024 14:51:24 -0400 Subject: [PATCH 1/3] refactor(icons): replace cog icon with octicons prime version --- src/components/Sidebar.tsx | 4 ++-- src/icons/Cog.tsx | 26 -------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 src/icons/Cog.tsx diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 38574a812..2dc3b3342 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -5,7 +5,7 @@ import { useNavigate, useLocation } from 'react-router-dom'; import { Logo } from '../components/Logo'; import { AppContext } from '../context/App'; -import { IconCog } from '../icons/Cog'; +import { GearIcon } from '@primer/octicons-react'; import { IconQuit } from '../icons/Quit'; import { IconRefresh } from '../icons/Refresh'; import { Constants } from '../utils/constants'; @@ -86,7 +86,7 @@ export const Sidebar: React.FC = () => { }} aria-label="Settings" > - + )} diff --git a/src/icons/Cog.tsx b/src/icons/Cog.tsx deleted file mode 100644 index 578091450..000000000 --- a/src/icons/Cog.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import * as React from 'react'; - -export const IconCog = ({ className = '' }: { className?: string }) => { - return ( - - ); -}; From 1c4ea77abb0b59b4bc76fb85ce73afd1a54230cd Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 11 Mar 2024 14:58:36 -0400 Subject: [PATCH 2/3] refactor(icons): replace cog icon with octicons prime version --- src/components/Sidebar.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 2dc3b3342..48e20fa85 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,11 +1,10 @@ -import { BellIcon } from '@primer/octicons-react'; +import { BellIcon, GearIcon } from '@primer/octicons-react'; import { ipcRenderer } from 'electron'; import React, { useCallback, useContext, useMemo } from 'react'; import { useNavigate, useLocation } from 'react-router-dom'; import { Logo } from '../components/Logo'; import { AppContext } from '../context/App'; -import { GearIcon } from '@primer/octicons-react'; import { IconQuit } from '../icons/Quit'; import { IconRefresh } from '../icons/Refresh'; import { Constants } from '../utils/constants'; From 7b4a96b4d68111b2e9b2c0a0ff7056e5c6066774 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 11 Mar 2024 15:03:03 -0400 Subject: [PATCH 3/3] refactor(icons): replace cog icon with octicons prime version --- src/components/Sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 48e20fa85..f4ff5466e 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -85,7 +85,7 @@ export const Sidebar: React.FC = () => { }} aria-label="Settings" > - + )}