cleanup
This commit is contained in:
parent
f3588438ec
commit
733f781a91
1 changed files with 0 additions and 23 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue