Skip to content

Commit

Permalink
Routing to channels page is done
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-01k committed Jan 3, 2024
1 parent 767c7bc commit ca69966
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/snap/SnapModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down Expand Up @@ -143,7 +144,7 @@ const SnapModule = () => {
};

const theme = useTheme();

const navigate = useNavigate();
return (
<Container>
<AboutPushSnapModalComponent
Expand Down Expand Up @@ -204,7 +205,7 @@ const SnapModule = () => {
<ItemVV2 margin="0 0 0 16px">
<PrimaryText>Subscribe for Notifications</PrimaryText>
<SecondaryText>Subscribe to protocols that you want notification from, they are called {" "}
<ChannelSpan onClick={() => (window.location.href = '/channels')}>channels.</ChannelSpan>
<ChannelSpan onClick={() => navigate('/channels')}>channels.</ChannelSpan>
</SecondaryText>
</ItemVV2>
</ItemHV2>
Expand Down

0 comments on commit ca69966

Please sign in to comment.