Skip to content

Commit

Permalink
Fix unread mail sliding item style (aeharding#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Aug 5, 2023
1 parent 54cf560 commit f560b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/shared/sliding/BaseSlidingVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
chevronExpand,
eyeOffOutline,
eyeOutline,
mailOpen,
mailUnread,
} from "ionicons/icons";
import React, { useCallback, useContext, useMemo } from "react";
Expand Down Expand Up @@ -232,10 +233,9 @@ function BaseSlidingVoteInternal({

const markUnreadAction = useMemo(() => {
return {
icon: mailUnread,
icon: isRead ? mailUnread : mailOpen,
trigger: markUnread,
bgColor: "primaryfixed",
slash: !isRead,
bgColor: "primary-fixed",
};
}, [markUnread, isRead]);

Expand Down

0 comments on commit f560b43

Please sign in to comment.