From ca69966ff681a6a6bb605613038f8068dd135aa7 Mon Sep 17 00:00:00 2001 From: abhishek-01k Date: Wed, 3 Jan 2024 16:33:29 +0530 Subject: [PATCH] Routing to channels page is done --- src/modules/snap/SnapModule.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/snap/SnapModule.tsx b/src/modules/snap/SnapModule.tsx index 015c935103..f65ded3a26 100644 --- a/src/modules/snap/SnapModule.tsx +++ b/src/modules/snap/SnapModule.tsx @@ -25,6 +25,7 @@ import BellRinging from 'assets/PushSnaps/BellRinging.svg'; import GasPump from 'assets/PushSnaps/GasPump.svg'; import AboutSnapModal from './AboutSnapModal'; import { ReactComponent as Gear } from 'assets/PushSnaps/Gear.svg'; +import { useNavigate } from 'react-router-dom'; const SnapModule = () => { @@ -143,7 +144,7 @@ const SnapModule = () => { }; const theme = useTheme(); - + const navigate = useNavigate(); return ( { Subscribe for Notifications Subscribe to protocols that you want notification from, they are called {" "} - (window.location.href = '/channels')}>channels. + navigate('/channels')}>channels.