Skip to content

Commit

Permalink
swap drawer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SarjuHansaliya committed Apr 18, 2022
1 parent 26ef56c commit 17e3b87
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/SwapWidget/MarketOrder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,16 +499,18 @@ const MarketOrder: React.FC<Props> = ({ swapType, setSwapType, isLimitOrderVisib
{/* <RetryDrawer isOpen={isRetryDrawerOpen} onClose={() => setIsRetryDrawerOpen(false)} /> */}
{/* Token Drawer */}

<SelectTokenDrawer
isOpen={isTokenDrawerOpen}
onClose={handleSelectTokenDrawerClose}
onCurrencySelect={onCurrencySelect}
selectedCurrency={tokenDrawerType === Field.INPUT ? inputCurrency : outputCurrency}
otherSelectedCurrency={tokenDrawerType === Field.INPUT ? outputCurrency : inputCurrency}
/>
{isTokenDrawerOpen && (
<SelectTokenDrawer
isOpen={isTokenDrawerOpen}
onClose={handleSelectTokenDrawerClose}
onCurrencySelect={onCurrencySelect}
selectedCurrency={tokenDrawerType === Field.INPUT ? inputCurrency : outputCurrency}
otherSelectedCurrency={tokenDrawerType === Field.INPUT ? outputCurrency : inputCurrency}
/>
)}

{/* Confirm Swap Drawer */}
{trade && (
{trade && showConfirm && (
<ConfirmSwapDrawer
isOpen={showConfirm}
trade={trade}
Expand Down

0 comments on commit 17e3b87

Please sign in to comment.