diff --git a/src/lib/styles.ts b/src/lib/styles.ts index 8500632e37..03822b6c13 100644 --- a/src/lib/styles.ts +++ b/src/lib/styles.ts @@ -54,8 +54,6 @@ export const colors = { green3: '#20bc07', green4: '#148203', green5: '#082b03', - - unreadNotifBg: '#ebf6ff', } /** diff --git a/src/lib/themes.ts b/src/lib/themes.ts index d99dd37b2c..df7cf40e40 100644 --- a/src/lib/themes.ts +++ b/src/lib/themes.ts @@ -24,8 +24,6 @@ export const defaultTheme: Theme = { textVeryLight: lightPalette.contrast_400, replyLine: lightPalette.contrast_100, replyLineDot: lightPalette.contrast_200, - unreadNotifBg: lightPalette.primary_25, - unreadNotifBorder: lightPalette.primary_100, postCtrl: lightPalette.contrast_500, brandText: lightPalette.primary_500, emptyStateIcon: lightPalette.contrast_300, @@ -310,8 +308,6 @@ export const darkTheme: Theme = { textVeryLight: darkPalette.contrast_400, replyLine: darkPalette.contrast_200, replyLineDot: darkPalette.contrast_200, - unreadNotifBg: darkPalette.primary_25, - unreadNotifBorder: darkPalette.primary_100, postCtrl: darkPalette.contrast_500, brandText: darkPalette.primary_500, emptyStateIcon: darkPalette.contrast_300, @@ -359,8 +355,6 @@ export const dimTheme: Theme = { textVeryLight: dimPalette.contrast_400, replyLine: dimPalette.contrast_200, replyLineDot: dimPalette.contrast_200, - unreadNotifBg: dimPalette.primary_25, - unreadNotifBorder: dimPalette.primary_100, postCtrl: dimPalette.contrast_500, brandText: dimPalette.primary_500, emptyStateIcon: dimPalette.contrast_300, diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx index 79a8d746e8..5f337044e5 100644 --- a/src/view/com/notifications/NotificationFeedItem.tsx +++ b/src/view/com/notifications/NotificationFeedItem.tsx @@ -26,7 +26,6 @@ import {useQueryClient} from '@tanstack/react-query' import {DM_SERVICE_HEADERS, MAX_POST_LINES} from '#/lib/constants' import {useAnimatedValue} from '#/lib/hooks/useAnimatedValue' -import {usePalette} from '#/lib/hooks/usePalette' import {makeProfileLink} from '#/lib/routes/links' import {type NavigationProp} from '#/lib/routes/types' import {forceLTR} from '#/lib/strings/bidi' @@ -92,10 +91,9 @@ let NotificationFeedItem = ({ hideTopBorder?: boolean }): React.ReactNode => { const queryClient = useQueryClient() - const pal = usePalette('default') const t = useTheme() const {_, i18n} = useLingui() - const [isAuthorsExpanded, setAuthorsExpanded] = useState(false) + const [isAuthorsExpanded, setIsAuthorsExpanded] = useState(false) const itemHref = useMemo(() => { switch (item.type) { case 'post-like': @@ -145,7 +143,7 @@ let NotificationFeedItem = ({ e.preventDefault() e.stopPropagation() } - setAuthorsExpanded(currentlyExpanded => !currentlyExpanded) + setIsAuthorsExpanded(currentlyExpanded => !currentlyExpanded) } const onBeforePress = useCallback(() => { @@ -222,8 +220,8 @@ let NotificationFeedItem = ({ post={item.subject} style={ isHighlighted && { - backgroundColor: pal.colors.unreadNotifBg, - borderColor: pal.colors.unreadNotifBorder, + backgroundColor: t.palette.primary_25, + borderColor: t.palette.primary_100, } } hideTopBorder={hideTopBorder} @@ -577,8 +575,8 @@ let NotificationFeedItem = ({ item.notification.isRead ? undefined : { - backgroundColor: pal.colors.unreadNotifBg, - borderColor: pal.colors.unreadNotifBorder, + backgroundColor: t.palette.primary_25, + borderColor: t.palette.primary_100, }, !hideTopBorder && a.border_t, a.overflow_hidden,