This commit is contained in:
zeppi 2022-01-26 14:50:34 -05:00
parent f3588438ec
commit 733f781a91

View file

@ -72,29 +72,6 @@ import ModalWalletUnlock from 'modal/modalWalletUnlock';
import ModalYoutubeWelcome from 'modal/modalYoutubeWelcome';
// type Props = {
// modal: { id: string, modalProps: {} },
// error: { message: string },
// location: { pathname: string },
// hideModal: () => void,
// };
//
// function ModalRouter(props: Props) {
// const { modal, error, location, hideModal } = props;
// const { pathname } = location;
//
// React.useEffect(() => {
// hideModal();
// }, [pathname, hideModal]);
//
// if (error) {
// return <ModalError {...error} />;
// }
//
// if (!modal) {
// return null;
// }
function getModal(id) {
switch (id) {
case MODALS.UPGRADE: