scroll up on active NavLink click, mobile messages & footer

This commit is contained in:
Martti Malmi
2023-12-01 17:33:36 +02:00
parent dda38ab824
commit 689839e043
7 changed files with 33 additions and 26 deletions

View File

@ -1,4 +1,4 @@
import { Link, useNavigate } from "react-router-dom";
import { useNavigate } from "react-router-dom";
import { base64 } from "@scure/base";
import { unwrap } from "@snort/shared";
import { FormattedMessage } from "react-intl";
@ -9,6 +9,7 @@ import useLogin from "@/Hooks/useLogin";
import useEventPublisher from "@/Hooks/useEventPublisher";
import SnortApi from "@/External/SnortApi";
import { HasNotificationsMarker } from "@/Pages/Layout/HasNotificationsMarker";
import NavLink from "@/Element/Button/NavLink";
const NotificationsHeader = () => {
const navigate = useNavigate();
@ -70,10 +71,10 @@ const NotificationsHeader = () => {
return (
<div className="flex justify-between">
<Link className="btn" to="/notifications" onClick={goToNotifications}>
<NavLink className="btn" to="/notifications" onClick={goToNotifications}>
<Icon name="bell-02" size={24} />
<HasNotificationsMarker />
</Link>
</NavLink>
</div>
);
};