Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

disable wrapEther on disconnect #1208

Merged
merged 2 commits into from
Jul 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/components/TradeWidget/TokenRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,14 @@ const TokenRow: React.FC<Props> = ({
<div>
{editableAndConnected && !tokenDisabled && (
<>
<div className="btn" onClick={(): void => showForm('deposit')}>
<TooltipWrapper
as="button"
type="button"
tooltip="Deposit tokens into the Exchange Balance so it can be used for trading"
onClick={(): void => showForm('deposit')}
>
+ Deposit
</div>
</TooltipWrapper>
{isDepositFormVisible && (
<Form
title={
Expand All @@ -286,7 +291,7 @@ const TokenRow: React.FC<Props> = ({
)}
</>
)}
{!readOnly && isWeth && <WrapEtherBtn label="+ Wrap Ether" />}
{editableAndConnected && isWeth && <WrapEtherBtn label="+ Wrap Ether" />}
W3stside marked this conversation as resolved.
Show resolved Hide resolved
<span>
Balance:
{readOnly ? (
Expand Down