-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frontend: update UI of add account dropdown to use react-select #3043
frontend: update UI of add account dropdown to use react-select #3043
Conversation
f00344c
to
b1edc71
Compare
@@ -0,0 +1,91 @@ | |||
.dropdown { | |||
appearance: none; | |||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-labelledby='chevron down' color='%23777'%3E%3Cdefs/%3E%3Cpolyline points='6 10 12 16 18 10'/%3E%3C/svg%3E%0A"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this inline svg in 4 places (coin-dropdown.tsx, countryselect.tsx, activecurrencies.tsx and singledropdown.tsx), each seem to define their own DropdownIndicator component. It looks you could re-use some components. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make a new refactoring PR after this. Then use that component here and in several places.
frontends/web/src/routes/account/add/components/coin-dropdown.tsx
Outdated
Show resolved
Hide resolved
Thanks for the review, PTAL @thisconnect |
b1edc71
to
502ec01
Compare
frontends/web/src/routes/account/add/components/coin-dropdown.tsx
Outdated
Show resolved
Hide resolved
502ec01
to
4ec4e31
Compare
Oh good catch. Removed now:) thanks. PTAL @thisconnect |
4ec4e31
to
9cd2c69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested LGTM thanks
Identical UI with the select account dropdown in buy & sell page with icon and coin name on the option and selected value.
9cd2c69
to
f0b3bb2
Compare
Identical UI with the select account dropdown in buy & sell page, with icon and coin name on the options and selected value.