Skip to content

Commit

Permalink
delete 2x choose wallet modal render
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworzen1 committed Jan 26, 2024
1 parent cfe2b2b commit 4e28dd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
12 changes: 2 additions & 10 deletions src/vva-fe/src/components/organisms/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -13,7 +13,7 @@ const POSITION_TO_BLUR = 50;

export const TopNav = ({ isConnectButton = true }) => {
const [windowScroll, setWindowScroll] = useState<number>(0);
const { openModal, closeModal, modal } = useModal();
const { openModal } = useModal();
const [isDrawerOpen, setIsDrawerOpen] = useState<boolean>(false);
const { screenWidth, isMobile } = useScreenDimension();
const { isEnabled, disconnectWallet, stakeKey } = useCardano();
Expand Down Expand Up @@ -144,14 +144,6 @@ export const TopNav = ({ isConnectButton = true }) => {
</>
)}
</AppBar>
{modal?.component && (
<Modal
open={Boolean(modal.component)}
handleClose={!modal.preventDismiss ? closeModal : undefined}
>
{modal.component}
</Modal>
)}
</Box>
);
};
10 changes: 5 additions & 5 deletions src/vva-fe/src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ interface Props {

const ContextProviders = ({ children }: Props) => {
return (
<ModalProvider>
<SnackbarProvider>
<CardanoProvider>{children}</CardanoProvider>
</SnackbarProvider>
</ModalProvider>
<SnackbarProvider>
<CardanoProvider>
<ModalProvider>{children}</ModalProvider>
</CardanoProvider>
</SnackbarProvider>
);
};

Expand Down

0 comments on commit 4e28dd1

Please sign in to comment.