Header refactor #7440

Merged
jessopb merged 4 commits from header-refactor into master 2022-01-26 20:54:58 +01:00
Showing only changes of commit 733f781a91 - Show all commits

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: