mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 16:19:04 +08:00
feat: removed top nav from new alerts landing page (#5538)
* feat: removed top nav from new alerts landing page * feat: added new function to check new alerts landing page --------- Co-authored-by: Vikrant Gupta <vikrant.thomso@gmail.com>
This commit is contained in:
parent
d00024b64a
commit
3134e8c1cf
@ -31,7 +31,14 @@ function TopNav(): JSX.Element | null {
|
|||||||
[location.pathname],
|
[location.pathname],
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isSignUpPage || isDisabled || isRouteToSkip) {
|
const isNewAlertsLandingPage = useMemo(
|
||||||
|
() =>
|
||||||
|
matchPath(location.pathname, { path: ROUTES.ALERTS_NEW, exact: true }) &&
|
||||||
|
!location.search,
|
||||||
|
[location.pathname, location.search],
|
||||||
|
);
|
||||||
|
|
||||||
|
if (isSignUpPage || isDisabled || isRouteToSkip || isNewAlertsLandingPage) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user