File tree Expand file tree Collapse file tree 2 files changed +37
-32
lines changed Expand file tree Collapse file tree 2 files changed +37
-32
lines changed Original file line number Diff line number Diff line change @@ -125,30 +125,31 @@ function Transfer ({ className }: Props): React.ReactElement<Props> {
125
125
} }
126
126
value = { to }
127
127
/>
128
- < Dropdown
129
- className = "dropdown"
130
- isDisabled = { isBusy }
131
- label = { t < string > ( 'Asset type' ) }
132
- onChange = { ( asset : string ) => {
133
- setAsset ( asset ) ;
134
- _removeError ( ) ;
135
- } }
136
- options = { [
137
- { value : 'cennz' , text : 'CENNZ' } ,
138
- { value : 'cpay' , text : 'CPAY' } ,
139
- ] }
140
- value = { asset }
141
- />
142
- < AmountInput
143
- disabled = { isBusy }
144
- label = { t < string > ( 'Send amount' ) }
145
- onChange = { amount => {
146
- setAmount ( amount ) ;
147
- _removeError ( ) ;
148
- } }
149
- placeholder = "0.0000"
150
- value = { amount }
151
- />
128
+ < div className = "amount-container" >
129
+ < AmountInput
130
+ disabled = { isBusy }
131
+ label = { t < string > ( 'Send amount' ) }
132
+ onChange = { amount => {
133
+ setAmount ( amount ) ;
134
+ _removeError ( ) ;
135
+ } }
136
+ placeholder = "0.0000"
137
+ value = { amount }
138
+ />
139
+ < Dropdown
140
+ className = "asset-select"
141
+ isDisabled = { isBusy }
142
+ onChange = { ( asset : string ) => {
143
+ setAsset ( asset ) ;
144
+ _removeError ( ) ;
145
+ } }
146
+ options = { [
147
+ { value : 'cennz' , text : 'CENNZ' } ,
148
+ { value : 'cpay' , text : 'CPAY' } ,
149
+ ] }
150
+ value = { asset }
151
+ />
152
+ </ div >
152
153
< InputWithLabel
153
154
disabled = { isBusy }
154
155
isError = { pass . length < MIN_LENGTH || ! ! passError }
@@ -192,4 +193,15 @@ export default styled(Transfer)`
192
193
.dropdown {
193
194
margin-bottom: 16px;
194
195
}
196
+
197
+ .amount-container {
198
+ position: relative;
199
+ }
200
+
201
+ .asset-select {
202
+ position: absolute;
203
+ top: 26px;
204
+ right: 0;
205
+ width: 100px;
206
+ }
195
207
` ;
Original file line number Diff line number Diff line change @@ -5100,14 +5100,7 @@ __metadata:
5100
5100
languageName: node
5101
5101
linkType: hard
5102
5102
5103
- "bn.js@npm:^5.0.0, bn.js@npm:^5.1.1":
5104
- version: 5.1.3
5105
- resolution: "bn.js@npm:5.1.3"
5106
- checksum: 991c1fefb03bd69315297d454b379d5a5dd4834ab97db3ec985714f00ff7d3cc19642e1ac6bdf0d9f04946cc9f1ad26a5b497b7f4e7fa1230caf68af46fbefe6
5107
- languageName: node
5108
- linkType: hard
5109
-
5110
- "bn.js@npm:^5.1.3":
5103
+ "bn.js@npm:^5.0.0, bn.js@npm:^5.1.1, bn.js@npm:^5.1.3":
5111
5104
version: 5.2.0
5112
5105
resolution: "bn.js@npm:5.2.0"
5113
5106
checksum: 7a73bdbba63013a7f9953fbbd6ea3351e4cf36d6fdbb5adf7969fcd65255b9c04f2994b0132d89d74ffe608a0eb5a48322526bee20c0e03e71e502603b420f63
You can’t perform that action at this time.
0 commit comments