From 3dd1047b085fa7795f322c5829f39208465bff13 Mon Sep 17 00:00:00 2001
From: Sebastian
Date: Tue, 29 Mar 2022 09:58:06 -0300
Subject: added react eslint and fix most of the warns
---
.../src/wallet/DeveloperPage.tsx | 23 +++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
(limited to 'packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx')
diff --git a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx
index 8709e2ba7..a54c16754 100644
--- a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx
@@ -57,8 +57,6 @@ export function DeveloperPage(): VNode {
? nonResponse
: response.response;
- const balanceResponse = useAsyncAsHook(wxApi.getBalance);
-
return (
Coins:
- {Object.keys(money_by_exchange).map((ex) => {
+ {Object.keys(money_by_exchange).map((ex, idx) => {
const allcoins = money_by_exchange[ex];
allcoins.sort((a, b) => {
return b.denom_value - a.denom_value;
@@ -231,7 +229,14 @@ export function View({
} as SplitedCoinInfo,
);
- return ;
+ return (
+
+ );
})}
@@ -272,7 +277,7 @@ function ShowAllCoins({
ex: string;
coins: SplitedCoinInfo;
currencies: { [ex: string]: string };
-}) {
+}): VNode {
const { i18n } = useTranslationContext();
const [collapsedSpent, setCollapsedSpent] = useState(true);
const [collapsedUnspent, setCollapsedUnspent] = useState(false);
@@ -308,9 +313,9 @@ function ShowAllCoins({
from refresh?
- {coins.usable.map((c) => {
+ {coins.usable.map((c, idx) => {
return (
-
+
{c.id.substring(0, 5)} |
{c.denom_value} |
{c.remain_value} |
@@ -347,9 +352,9 @@ function ShowAllCoins({
from refresh?
- {coins.spent.map((c) => {
+ {coins.spent.map((c, idx) => {
return (
-
+
{c.id.substring(0, 5)} |
{c.denom_value} |
{c.remain_value} |
--
cgit v1.2.3