diff --git a/src/components/Footer/Footer.component.tsx b/src/components/Footer/Footer.component.tsx index 4793e4f2..206008d0 100644 --- a/src/components/Footer/Footer.component.tsx +++ b/src/components/Footer/Footer.component.tsx @@ -1,13 +1,18 @@ import { socialLinks } from '@/constants/socialLinks' -import { Link } from 'react-router-dom' +import { Link, useLocation } from 'react-router-dom' import { Icon } from '../icon' import { type FC } from 'react' import { useAccount } from 'wagmi' +import { privateRoutes } from '@/constants' export const Footer: FC = () => { const { isConnected: isWalletConnected } = useAccount() + + const location = useLocation() + const isPrivateRoute = privateRoutes.includes(location.pathname) + return ( -