|
@@ -18,8 +18,9 @@ export interface ItemComProps {
|
|
|
const ItemCom: FC<ItemComProps> = ({ type = "login" }) => {
|
|
|
const t = useTranslations("ProfilePage");
|
|
|
|
|
|
- const { unread } = useGlobalNoticeStore((state) => ({
|
|
|
+ const { unread, userUnread } = useGlobalNoticeStore((state) => ({
|
|
|
unread: state.unread,
|
|
|
+ userUnread: state.userUnred,
|
|
|
}));
|
|
|
const links = [
|
|
|
{ label: "gratis", desc: "gratisDesc", icon: "", url: "/", content: null },
|
|
@@ -56,7 +57,7 @@ const ItemCom: FC<ItemComProps> = ({ type = "login" }) => {
|
|
|
desc: "",
|
|
|
icon: "",
|
|
|
url: "/notification",
|
|
|
- content: unread ? Badge.dot : null,
|
|
|
+ content: unread || userUnread ? Badge.dot : null,
|
|
|
},
|
|
|
{ label: "initial", desc: "", icon: "", url: "/", content: null },
|
|
|
];
|