Skip to content

Commit

Permalink
feat: remove switch button from trade dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mradkov committed Nov 6, 2023
1 parent e3343c4 commit e059944
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions app/src/components/trade-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,24 +274,6 @@ const TradeDialog = ({ pair }: { pair: Pair }) => {
</div>
<div className="flex w-full items-center space-x-6">
<div className="h-[1px] flex-1 bg-border" />
<Button
variant="ghost"
onClick={(e) => {
e.preventDefault();
setTokenA(tokenB);
setTokenB(tokenA);
const values = form.getValues();
form.reset({ from: values.to, to: values.from });
}}
>
<Image
src="/sync-arrows.svg"
height={16}
width={16}
alt="arrows"
/>
</Button>
<div className="h-[1px] flex-1 bg-border" />
</div>
<div className="grid w-full grid-cols-2">
<FormField
Expand Down

0 comments on commit e059944

Please sign in to comment.