From a30a547ac5596c787252ce23a845093c426dc2ef Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
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/NoBalanceHelp.tsx')

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 (
-    <WarningBox>
-      <p>
-        <b>
-          <i18n.Translate>You have no balance.</i18n.Translate>
-        </b>{" "}
-        <i18n.Translate>Withdraw some funds into your wallet.</i18n.Translate>
-      </p>
-      <ButtonBoxWarning onClick={() => goToWalletManualWithdraw()}>
-        <i18n.Translate>Withdraw</i18n.Translate>
-      </ButtonBoxWarning>
-    </WarningBox>
+    <Paper
+      class={css`
+        margin: 1em;
+      `}
+    >
+      <Alert title="You have no balance." severity="warning">
+        <Typography>Withdraw some funds into your wallet.</Typography>
+        <Button
+          fullWidth
+          color="warning"
+          variant="outlined"
+          onClick={goToWalletManualWithdraw}
+        >
+          <Typography>Withdraw</Typography>
+        </Button>
+      </Alert>
+    </Paper>
   );
 }
-- 
cgit v1.2.3

