@@ -15,22 +15,7 @@ const Label = ({ children, className, style, ...rest }: React.HTMLAttributes<HTM
1515 </ div >
1616)
1717
18- type SummaryRowType = { label : ReactNode ; content : ReactNode }
19-
20- type OrderSummaryProps = {
21- title ?: ReactNode
22- inputCurrency : ReactNode
23- outputCurrency : ReactNode
24- currencyIn ?: Currency
25- currencyOut ?: Currency
26- rateInfo ?: RateInfo
27- order ?: LimitOrder
28- expires ?: ReactNode
29- marketRate ?: ReactNode
30- className ?: string
31- }
32-
33- const SummaryRow = ( { label, content } : SummaryRowType ) => (
18+ const SummaryRow = ( { label, content } : { label : ReactNode ; content : ReactNode } ) => (
3419 < HStack className = "min-h-6 w-full items-center justify-between gap-3 max-sm:flex-col max-sm:items-start" >
3520 < div className = "text-sm text-subText" > { label } </ div >
3621 < HStack className = "min-w-0 flex-1 justify-end text-right text-sm font-medium max-sm:justify-start max-sm:text-left" >
@@ -46,17 +31,14 @@ const formatRateValue = (value?: string | number) => {
4631 return removeTrailingZero ( numberValue . toPrecision ( 6 ) )
4732}
4833
49- const RateValue = ( {
50- currencyIn,
51- currencyOut,
52- rateInfo,
53- order,
54- } : {
34+ type RateValueProps = {
5535 currencyIn ?: Currency
5636 currencyOut ?: Currency
5737 rateInfo ?: RateInfo
5838 order ?: LimitOrder
59- } ) => {
39+ }
40+
41+ const RateValue = ( { currencyIn, currencyOut, rateInfo, order } : RateValueProps ) => {
6042 const [ showInverted , setShowInverted ] = useState ( false )
6143
6244 let baseSymbol : string | undefined
@@ -105,6 +87,19 @@ const RateValue = ({
10587 )
10688}
10789
90+ type OrderSummaryProps = {
91+ title ?: ReactNode
92+ inputCurrency : ReactNode
93+ outputCurrency : ReactNode
94+ currencyIn ?: Currency
95+ currencyOut ?: Currency
96+ rateInfo ?: RateInfo
97+ order ?: LimitOrder
98+ expires ?: ReactNode
99+ marketRate ?: ReactNode
100+ className ?: string
101+ }
102+
108103export const OrderSummary = ( {
109104 title,
110105 inputCurrency,
0 commit comments