Skip to content
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

Merged

Conversation

shonsirsha
Copy link
Collaborator

Identical UI with the select account dropdown in buy & sell page, with icon and coin name on the options and selected value.

bmxz bmx

@shonsirsha shonsirsha force-pushed the frontend-addaccount-dropdown-restyle branch from f00344c to b1edc71 Compare November 11, 2024 08:43
@@ -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");
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@shonsirsha shonsirsha marked this pull request as draft November 12, 2024 08:14
@shonsirsha shonsirsha marked this pull request as ready for review November 12, 2024 08:40
@shonsirsha
Copy link
Collaborator Author

Thanks for the review, PTAL @thisconnect

@shonsirsha shonsirsha force-pushed the frontend-addaccount-dropdown-restyle branch from b1edc71 to 502ec01 Compare November 12, 2024 09:07
@shonsirsha shonsirsha force-pushed the frontend-addaccount-dropdown-restyle branch from 502ec01 to 4ec4e31 Compare November 12, 2024 10:20
@shonsirsha
Copy link
Collaborator Author

Oh good catch. Removed now:) thanks. PTAL @thisconnect

@shonsirsha shonsirsha force-pushed the frontend-addaccount-dropdown-restyle branch from 4ec4e31 to 9cd2c69 Compare November 12, 2024 10:37
Copy link
Collaborator

@thisconnect thisconnect left a 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.
@shonsirsha shonsirsha force-pushed the frontend-addaccount-dropdown-restyle branch from 9cd2c69 to f0b3bb2 Compare November 12, 2024 10:54
@shonsirsha shonsirsha merged commit f200fd0 into BitBoxSwiss:master Nov 12, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants