From e87073d42a2f51405d1a1f6be27cb378b552dcdf Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 11 Jan 2023 15:26:07 -0300
Subject: add kyc warning

---
 .../src/wallet/ExchangeSelection/views.tsx            | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx b/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx
index d01ce7ca0..fd5c0cfe3 100644
--- a/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx
@@ -19,6 +19,7 @@ import { styled } from "@linaria/react";
 import { Fragment, h, VNode } from "preact";
 import { useState } from "preact/hooks";
 import { Amount } from "../../components/Amount.js";
+import { AlertView } from "../../components/CurrentAlerts.js";
 import { ErrorMessage } from "../../components/ErrorMessage.js";
 import { SelectList } from "../../components/SelectList.js";
 import { Input, SvgIcon } from "../../components/styled/index.js";
@@ -144,11 +145,23 @@ export function NoExchangesView({
 }: SelectExchangeState.NoExchange): VNode {
   const { i18n } = useTranslationContext();
   if (!currency) {
-    return <ErrorMessage title={i18n.str`Could not find any exchange`} />;
+    return (
+      <AlertView
+        alert={{
+          type: "warning",
+          message: i18n.str`Could not find any exchange `,
+          description: i18n.str`You are trying to withdraw coins but there is no exchange and the bank didn't suggested one.`,
+        }}
+      />
+    );
   }
   return (
-    <ErrorMessage
-      title={i18n.str`Could not find any exchange for the currency ${currency}`}
+    <AlertView
+      alert={{
+        type: "warning",
+        message: i18n.str`Could not find any exchange `,
+        description: i18n.str`You are trying to withdraw coins for the currency ${currency} but there is no exchange registered in this wallet and the bank didn't suggested one.`,
+      }}
     />
   );
 }
-- 
cgit v1.2.3

