-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Disable account dropdown on signing screens #6024
Conversation
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.
Two small things, otherwise LGTM
|
||
export default class AccountDropdownMini extends PureComponent { | ||
static propTypes = { | ||
accounts: PropTypes.array, |
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 might be able to add .isRequired
to this prop
dropdownOpen: PropTypes.bool, | ||
onSelect: PropTypes.func, | ||
openDropdown: PropTypes.func, | ||
selectedAccount: PropTypes.object, |
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 might be able to add .isRequired
to this prop
889540f
to
5bac208
Compare
5bac208
to
0a018c7
Compare
The `AccountDropdownMini` component featured the ability to switch accounts using a dropdown, but this functionality was disabled in MetaMask#6024. It has been acting as a restyled `AccountListItem` since then. The component has been removed, and the style changes moved to the sole parent component (`RequestSignature`).
The `AccountDropdownMini` component featured the ability to switch accounts using a dropdown, but this functionality was disabled in #6024. It has been acting as a restyled `AccountListItem` since then. The component has been removed, and the style changes moved to the sole parent component (`RequestSignature`).
Fixes #6014