diff --git a/src/vva-fe/src/components/organisms/TopNav.tsx b/src/vva-fe/src/components/organisms/TopNav.tsx index c7c42f2e2..a0b046ee9 100644 --- a/src/vva-fe/src/components/organisms/TopNav.tsx +++ b/src/vva-fe/src/components/organisms/TopNav.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from "react"; import { NavLink, useNavigate } from "react-router-dom"; import { AppBar, Box, Grid, IconButton } from "@mui/material"; -import { Button, Link, Modal } from "@atoms"; +import { Button, Link } from "@atoms"; import { ICONS, IMAGES, PATHS, NAV_ITEMS } from "@consts"; import { useCardano, useModal } from "@context"; import { useScreenDimension } from "@hooks"; @@ -13,7 +13,7 @@ const POSITION_TO_BLUR = 50; export const TopNav = ({ isConnectButton = true }) => { const [windowScroll, setWindowScroll] = useState(0); - const { openModal, closeModal, modal } = useModal(); + const { openModal } = useModal(); const [isDrawerOpen, setIsDrawerOpen] = useState(false); const { screenWidth, isMobile } = useScreenDimension(); const { isEnabled, disconnectWallet, stakeKey } = useCardano(); @@ -144,14 +144,6 @@ export const TopNav = ({ isConnectButton = true }) => { )} - {modal?.component && ( - - {modal.component} - - )} ); }; diff --git a/src/vva-fe/src/context/index.tsx b/src/vva-fe/src/context/index.tsx index e8a118ad3..ecd5e4cff 100644 --- a/src/vva-fe/src/context/index.tsx +++ b/src/vva-fe/src/context/index.tsx @@ -8,11 +8,11 @@ interface Props { const ContextProviders = ({ children }: Props) => { return ( - - - {children} - - + + + {children} + + ); };