File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
src/components/swap/components/trade-details Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ import {
3
3
DisclosureButton ,
4
4
DisclosurePanel ,
5
5
} from '@headlessui/react'
6
- import { ExclamationTriangleIcon } from '@heroicons/react/20/solid'
6
+ import {
7
+ ChevronDownIcon ,
8
+ ExclamationTriangleIcon ,
9
+ } from '@heroicons/react/20/solid'
7
10
import Image from 'next/image'
8
11
import { useState } from 'react'
9
12
@@ -52,11 +55,11 @@ export const TradeDetails = (props: TradeDetailsProps) => {
52
55
: prices . outputTokenPriceUsd
53
56
54
57
return (
55
- < div className = 'mb-1.5 flex' >
58
+ < div className = 'mb-1.5 flex flex-col ' >
56
59
< Disclosure >
57
60
{ ( { open } ) => (
58
61
< >
59
- < DisclosureButton className = 'py-2 ' >
62
+ < DisclosureButton className = 'border-ic-gray-200 w-full border px-5 py-4 ' >
60
63
< div className = 'flex flex-1 items-center justify-between pr-1' >
61
64
< div className = 'flex' >
62
65
{ showWarning && (
@@ -91,6 +94,14 @@ export const TradeDetails = (props: TradeDetailsProps) => {
91
94
props . selectedQuoteType === QuoteType . flashmint && (
92
95
< FlashMintTag />
93
96
) }
97
+ { ! isLoading && (
98
+ < ChevronDownIcon
99
+ className = { cn (
100
+ 'ml-2 size-5' ,
101
+ open && 'rotate-180 transform transition' ,
102
+ ) }
103
+ />
104
+ ) }
94
105
{ isLoading && < StyledSkeleton width = { 70 } /> }
95
106
</ div >
96
107
</ div >
You can’t perform that action at this time.
0 commit comments