From fb8372dfbf27b7b4e8b2fe4f81aa2ba18bfcf638 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 15 Aug 2022 23:01:05 -0300 Subject: default exchange and select currency --- .../taler-wallet-webextension/src/mui/Modal.tsx | 38 +++++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'packages/taler-wallet-webextension/src/mui/Modal.tsx') diff --git a/packages/taler-wallet-webextension/src/mui/Modal.tsx b/packages/taler-wallet-webextension/src/mui/Modal.tsx index 5a30bcf26..b24a45d61 100644 --- a/packages/taler-wallet-webextension/src/mui/Modal.tsx +++ b/packages/taler-wallet-webextension/src/mui/Modal.tsx @@ -1,9 +1,25 @@ +/* + This file is part of GNU Taler + (C) 2022 Taler Systems S.A. + + GNU Taler is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + GNU Taler; see the file COPYING. If not, see + */ + import { css } from "@linaria/core"; import { h, JSX, VNode, ComponentChildren } from "preact"; import { useCallback, useEffect, useRef, useState } from "preact/hooks"; // eslint-disable-next-line import/extensions import { alpha } from "./colors/manipulation"; -import { ModalManager } from "./ModalManager"; +import { ModalManager } from "./ModalManager.js"; import { Portal } from "./Portal.js"; // eslint-disable-next-line import/extensions import { theme } from "./style"; @@ -22,12 +38,16 @@ interface Props { children: ComponentChildren; open?: boolean; exited?: boolean; - container?: HTMLElement; + container?: VNode; } const defaultManager = new ModalManager(); const manager = defaultManager; +function getModal(): any { + return null; //TODO: fix +} + export function Modal({ open, // exited, @@ -52,18 +72,18 @@ export function Modal({ return; } - if (open && isTopModal()) { - handleMounted(); - } else { - ariaHidden(modalRef.current, true); - } + // if (open && isTopModal()) { + // handleMounted(); + // } else { + // ariaHidden(modalRef.current, true); + // } }); return (
(typeof n === "number" ? `${n}px` : n)) .join(" "); -- cgit v1.2.3