Skip to content

Commit

Permalink
chore: push color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Sep 14, 2023
1 parent 8cffbe9 commit 0f428c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/NotificationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
getNotificationTypeIcon,
getNotificationTypeIconColor,
} from '../utils/github-api';
import { generateGitHubWebUrl } from '../utils/helpers';
import { openInBrowser } from '../utils/helpers';
import { Notification } from '../typesGithub';
import { AppContext } from '../context/App';
Expand Down Expand Up @@ -46,15 +45,17 @@ export const NotificationRow: React.FC<IProps> = ({

const reason = formatReason(notification.reason);
const NotificationIcon = getNotificationTypeIcon(notification.subject.type);
const iconColor =
settings.colors && getNotificationTypeIconColor(notification.subject.state);
const iconColor = getNotificationTypeIconColor(notification.subject.state);
const realIconColor = settings
? (settings.colors && iconColor) || ''
: iconColor;
const updatedAt = formatDistanceToNow(parseISO(notification.updated_at), {
addSuffix: true,
});

return (
<div className="flex space-x-2 p-2 bg-white dark:bg-gray-dark dark:text-white hover:bg-gray-100 dark:hover:bg-gray-darker border-b border-gray-100 dark:border-gray-darker">
<div className={`flex justify-center items-center w-8 ${iconColor}`}>
<div className={`flex justify-center items-center w-8 ${realIconColor}`}>
<NotificationIcon size={18} aria-label={notification.subject.type} />
</div>

Expand Down

0 comments on commit 0f428c4

Please sign in to comment.