-
Notifications
You must be signed in to change notification settings - Fork 22
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
Shayan/feq 2183/implement account switcher #195
Merged
shayan-deriv
merged 17 commits into
main
from
shayan/feq-2183/implement-account-switcher
May 15, 2024
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ec786ad
feat: implementing AccountSwitcher component [WIP]
shayan-deriv edad0cb
chore: updated with latest changes and applied the required changes a…
shayan-deriv 16196d7
chore: implementing account switcher items [WIP]
shayan-deriv e85ec22
Merge branch 'main' of github.com:deriv-com/ui into shayan/feq-2183/i…
shayan-deriv 03ad151
chore: account-switcher [wip]
shayan-deriv 6c464fa
Merge branch 'main' of github.com:deriv-com/ui into shayan/feq-2183/i…
shayan-deriv 5cb4c69
chore: account-switcher account panel is done
shayan-deriv 94471e2
chore: account-switcher total asset component is added
shayan-deriv e21d724
chore: account switcher desktop implementation is finished
shayan-deriv 2ce612f
chore: accountswitcher is done
shayan-deriv d83d8c1
Merge branch 'main' of github.com:deriv-com/ui into shayan/feq-2183/i…
shayan-deriv fc33ba7
chore: removed unnecssary styles
shayan-deriv 0805357
fixed some minor issues for AccountSwitcher component
shayan-deriv 464c395
chore: added test for account switcher
shayan-deriv 74dece8
chore: fixed minor issues for AccountSwitcher
shayan-deriv 8e79d2a
chore: added storybook for accountSwitcher
shayan-deriv bd8754e
Merge branch 'main' of github.com:deriv-com/ui into shayan/feq-2183/i…
shayan-deriv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/components/AppLayout/AccountSwitcher/AccountSwitcher.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.deriv-account-switcher { | ||
|
||
&__button { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
padding: 16px 12px; | ||
position: relative; | ||
height: 100%; | ||
&:hover { | ||
background-color: var(--color-grey-1, #f4f4f4); | ||
} | ||
} | ||
|
||
&__balance { | ||
font-size: 16px; | ||
display: flex; | ||
font-weight: 700; | ||
gap: 8px; | ||
color: var(--du-text-profit-success, #4bb4b3); | ||
} | ||
|
||
&__container { | ||
position: absolute; | ||
top: 55px; | ||
right: 0; | ||
border-radius: 4px; | ||
width: 336px; | ||
|
||
&--mobile{ | ||
width: 90vw; | ||
position: unset; | ||
min-height: 400px; | ||
height: auto; | ||
border-radius: 4px; | ||
} | ||
} | ||
|
||
} | ||
|
||
.ReactModal__Overlay { | ||
opacity: 0; | ||
} | ||
|
||
.ReactModal__Overlay--after-open{ | ||
opacity: 1; | ||
transition: opacity 200ms ease-in-out; | ||
} | ||
|
||
.ReactModal__Overlay--before-close{ | ||
opacity: 0; | ||
transition: opacity 400ms ease-in-out; | ||
} | ||
51 changes: 51 additions & 0 deletions
51
src/components/AppLayout/AccountSwitcher/AccountsItem/AccountsItem.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.deriv-account-switcher-item { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 5px; | ||
padding: 10px 16px; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
&:hover { | ||
background-color: var(--du-general-active, #d6dadb); | ||
} | ||
|
||
&--active { | ||
background-color: var(--du-general-active, #d6dadb); | ||
} | ||
|
||
&__icon { | ||
margin-right: 10px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
&__detail { | ||
gap: 10px; | ||
flex:1; | ||
} | ||
&__balance { | ||
font-size: 14px; | ||
&--active { | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
&__loginid { | ||
font-size: 10px; | ||
font-weight: 400; | ||
color: var(--du-text-less-prominent, #999999); | ||
|
||
&--active { | ||
color : var(--du-text-general, #333333); | ||
} | ||
} | ||
|
||
&__currency { | ||
font-size: 14px; | ||
color: var(--du-text-general, #333333); | ||
font-weight: 400; | ||
&--active { | ||
font-weight: 700; | ||
} | ||
} | ||
} |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
these are for modal animation in mobile