Skip to content

Commit

Permalink
fix: notification icon
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Mar 25, 2024
1 parent 1754ce0 commit f2678b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
12 changes: 9 additions & 3 deletions next/components/notification/bell.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import Link from "next/link";
import { useSelector } from "react-redux";
import { unreadSelector } from "store/reducers/notificationSlice";
import { ReactComponent as NotificationSVG } from "./notification.svg";
import { ReactComponent as UnreadNotificationSVG } from "./unread-notification.svg";
import { loginAddressSelector } from "store/reducers/accountSlice";
import { Button } from "@osn/common-ui";
import {
SystemNotification,
SystemNotificationActive,
} from "@osn/icons/opensquare";

export default function NotificationBell() {
const address = useSelector(loginAddressSelector);
Expand All @@ -18,7 +20,11 @@ export default function NotificationBell() {
<Link href="/notifications" className="max-sm:w-full">
<Button className="px-2 w-full max-sm:px-4">
<span className="w-full inline-flex items-center">
{unread ? <UnreadNotificationSVG /> : <NotificationSVG />}
{unread ? (
<SystemNotificationActive className="text-textSecondary" />
) : (
<SystemNotification className="text-textSecondary" />
)}
<span className="sm:hidden ml-2">Notification</span>
</span>
</Button>
Expand Down
3 changes: 0 additions & 3 deletions next/components/notification/notification.svg

This file was deleted.

5 changes: 0 additions & 5 deletions next/components/notification/unread-notification.svg

This file was deleted.

0 comments on commit f2678b3

Please sign in to comment.