Skip to content

Commit 620eb49

Browse files
committed
lint fixes
1 parent 4c99809 commit 620eb49

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

src/apps/wallet/src/home/tabs/winnings/WinningsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { toast } from 'react-toastify'
44
import { AxiosError } from 'axios'
55
import { Link } from 'react-router-dom'
6-
import React, { FC, useCallback, useEffect, useMemo } from 'react'
6+
import React, { FC, useCallback, useEffect } from 'react'
77

88
import { Collapsible, ConfirmModal, LoadingCircles } from '~/libs/ui'
99
import { UserProfile } from '~/libs/core'

src/apps/wallet/src/lib/components/payments-table/PaymentTable.tsx

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const PaymentsTable: React.FC<PaymentTableProps> = (props: PaymentTableProps) =>
8686

8787
const total = calculateTotal()
8888

89-
const isPaymeDisabled = !total || total < props.minWithdrawAmount;
89+
const isPaymeDisabled = !total || total < props.minWithdrawAmount
9090

9191
return (
9292
<>
@@ -194,19 +194,25 @@ const PaymentsTable: React.FC<PaymentTableProps> = (props: PaymentTableProps) =>
194194
</div>
195195
</>
196196
)}
197-
<Tooltip content={(
198-
<>
199-
Minimum withdrawal amounti is ${props.minWithdrawAmount}.
200-
<br />
201-
Please select more payments.
202-
</>
203-
)} disableTooltip={!isPaymeDisabled}>
197+
<Tooltip
198+
content={(
199+
<>
200+
Minimum withdrawal amounti is $
201+
{props.minWithdrawAmount}
202+
.
203+
<br />
204+
Please select more payments.
205+
</>
206+
)}
207+
disableTooltip={!isPaymeDisabled}
208+
>
204209
<Button
205210
primary
206211
onClick={() => {
207212
if (isPaymeDisabled) {
208-
return;
213+
return
209214
}
215+
210216
props.onPayMeClick(selectedPayments, total.toFixed(2))
211217
}}
212218
className={styles.paymeBtn}

0 commit comments

Comments
 (0)