diff --git a/package.json b/package.json index fa9f1ee9e..069abd69f 100644 --- a/package.json +++ b/package.json @@ -110,6 +110,7 @@ "@electron/remote": "2.1.2", "@primer/octicons-react": "19.9.0", "axios": "1.7.2", + "clsx": "2.1.1", "date-fns": "3.6.0", "electron-updater": "6.2.1", "final-form": "4.20.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 227ae2df0..82a8543d0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: axios: specifier: 1.7.2 version: 1.7.2 + clsx: + specifier: 2.1.1 + version: 2.1.1 date-fns: specifier: 3.6.0 version: 3.6.0 @@ -1103,6 +1106,10 @@ packages: clone-response@1.0.3: resolution: {integrity: sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==} + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + co@4.6.0: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'} @@ -4425,6 +4432,8 @@ snapshots: dependencies: mimic-response: 1.0.1 + clsx@2.1.1: {} + co@4.6.0: {} collect-v8-coverage@1.0.2: {} diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 0d153ac1e..74632eb2d 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -9,6 +9,7 @@ import { useLocation, useNavigate } from 'react-router-dom'; import { Logo } from '../components/Logo'; import { AppContext } from '../context/App'; import { BUTTON_SIDEBAR_CLASS_NAME } from '../styles/gitify'; +import { cn } from '../utils/cn'; import { quitApp } from '../utils/comms'; import { openGitHubNotifications, openGitifyRepository } from '../utils/links'; import { getNotificationCount } from '../utils/notifications'; @@ -47,9 +48,10 @@ export const Sidebar: FC = () => {