summaryrefslogtreecommitdiff
path: root/src/webex/pages/withdraw.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-06-03 16:46:25 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-06-03 16:46:25 +0530
commit83af702f1cae043902e23e9358c3e036ddca8d33 (patch)
tree3b27fa06fd890406224a0cc4e074d9bd9457230d /src/webex/pages/withdraw.tsx
parent77c61e738181561979da64a480fe21f70f6fe1f4 (diff)
downloadwallet-core-83af702f1cae043902e23e9358c3e036ddca8d33.tar.gz
wallet-core-83af702f1cae043902e23e9358c3e036ddca8d33.tar.bz2
wallet-core-83af702f1cae043902e23e9358c3e036ddca8d33.zip
re-indent with latest version of prettier
Diffstat (limited to 'src/webex/pages/withdraw.tsx')
-rw-r--r--src/webex/pages/withdraw.tsx23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/webex/pages/withdraw.tsx b/src/webex/pages/withdraw.tsx
index 5ef4376f7..d8ac3c455 100644
--- a/src/webex/pages/withdraw.tsx
+++ b/src/webex/pages/withdraw.tsx
@@ -28,11 +28,13 @@ import { WithdrawDetails } from "../../types/walletTypes";
import { WithdrawDetailView, renderAmount } from "../renderHtml";
import React, { useState, useEffect } from "react";
-import { getWithdrawDetails, acceptWithdrawal, onUpdateNotification } from "../wxApi";
+import {
+ getWithdrawDetails,
+ acceptWithdrawal,
+ onUpdateNotification,
+} from "../wxApi";
-function WithdrawalDialog(props: {
- talerWithdrawUri: string;
-}): JSX.Element {
+function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element {
const [details, setDetails] = useState<WithdrawDetails | undefined>();
const [selectedExchange, setSelectedExchange] = useState<
string | undefined
@@ -48,8 +50,8 @@ function WithdrawalDialog(props: {
return onUpdateNotification(() => {
setUpdateCounter(updateCounter + 1);
});
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [])
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
useEffect(() => {
const fetchData = async (): Promise<void> => {
@@ -174,11 +176,12 @@ function WithdrawalDialog(props: {
<strong>{renderAmount(details.bankWithdrawDetails.amount)}</strong> from
your bank account into your wallet.
</i18n.Translate>
- { selectedExchange ?
+ {selectedExchange ? (
<p>
- The exchange <strong>{selectedExchange}</strong> will be used as the Taler payment service provider.
- </p> : null
- }
+ The exchange <strong>{selectedExchange}</strong> will be used as the
+ Taler payment service provider.
+ </p>
+ ) : null}
<div>
<button