From 3e4f234ec1740de41bb5e863a7c92836b142e097 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 10 Jun 2024 08:39:07 -0400 Subject: [PATCH] refactor: move custom styles into class --- src/components/NotificationRow.tsx | 12 ++++++------ src/styles/gitify.ts | 4 ++++ src/utils/constants.ts | 5 ----- src/utils/remove-notification.test.ts | 4 ++-- src/utils/remove-notification.ts | 4 ++-- 5 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 src/styles/gitify.ts diff --git a/src/components/NotificationRow.tsx b/src/components/NotificationRow.tsx index 76575e2fc..7210cba7f 100644 --- a/src/components/NotificationRow.tsx +++ b/src/components/NotificationRow.tsx @@ -17,10 +17,10 @@ import { } from 'react'; import { AppContext } from '../context/App'; +import { PILL_CLASS_NAME } from '../styles/gitify'; import { IconColor } from '../types'; import type { Notification } from '../typesGitHub'; import { openExternalLink } from '../utils/comms'; -import Constants from '../utils/constants'; import { formatForDisplay, formatNotificationUpdatedAt, @@ -156,7 +156,7 @@ export const NotificationRow: FC = ({ notification, hostname }) => {
{notification.subject?.linkedIssues?.length > 0 && ( -