From eed7990c3c9e0459fafbda29046a124401a15e53 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Fri, 15 Jul 2022 16:57:58 -0600 Subject: [PATCH] Lighten unseen notifs --- web/pages/notifications.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/pages/notifications.tsx b/web/pages/notifications.tsx index 94c18d64..2d4d2f2b 100644 --- a/web/pages/notifications.tsx +++ b/web/pages/notifications.tsx @@ -46,6 +46,7 @@ import Router from 'next/router' export const NOTIFICATIONS_PER_PAGE = 30 const MULTIPLE_USERS_KEY = 'multipleUsers' +const HIGHLIGHT_CLASS = 'bg-indigo-50' export default function Notifications() { const user = useUser() @@ -240,7 +241,7 @@ function IncomeNotificationGroupItem(props: { 'relative cursor-pointer bg-white px-2 pt-6 text-sm', className, !expanded ? 'hover:bg-gray-100' : '', - highlighted && !expanded ? 'bg-indigo-200 hover:bg-indigo-100' : '' + highlighted && !expanded ? HIGHLIGHT_CLASS : '' )} onClick={onClickHandler} > @@ -378,7 +379,7 @@ function IncomeNotificationItem(props: {
@@ -447,7 +448,7 @@ function NotificationGroupItem(props: { 'relative cursor-pointer bg-white px-2 pt-6 text-sm', className, !expanded ? 'hover:bg-gray-100' : '', - highlighted && !expanded ? 'bg-indigo-200 hover:bg-indigo-100' : '' + highlighted && !expanded ? HIGHLIGHT_CLASS : '' )} onClick={onClickHandler} > @@ -593,7 +594,7 @@ function NotificationItem(props: {