From a30a547ac5596c787252ce23a845093c426dc2ef Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 5 Apr 2022 12:16:09 -0300 Subject: mui alert and not enough blanance ported to material --- .../src/popup/NoBalanceHelp.tsx | 38 +++++++++++++--------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'packages/taler-wallet-webextension/src/popup') diff --git a/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx b/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx index 3ec7b314c..ddce93cd8 100644 --- a/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx +++ b/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx @@ -1,24 +1,32 @@ -import { h, VNode } from "preact"; -import { ButtonBoxWarning, WarningBox } from "../components/styled/index.js"; -import { useTranslationContext } from "../context/translation.js"; +import { css } from "@linaria/core"; +import { Fragment, h, VNode } from "preact"; +import { Alert } from "../mui/Alert.js"; +import { Button } from "../mui/Button.js"; +import { Paper } from "../mui/Paper.js"; +import { Typography } from "../mui/Typography.js"; export function NoBalanceHelp({ goToWalletManualWithdraw, }: { goToWalletManualWithdraw: () => void; }): VNode { - const { i18n } = useTranslationContext(); return ( - -

- - You have no balance. - {" "} - Withdraw some funds into your wallet. -

- goToWalletManualWithdraw()}> - Withdraw - -
+ + + Withdraw some funds into your wallet. + + + ); } -- cgit v1.2.3