mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
Update newUI UI for switching back to old UI.
This commit is contained in:
parent
84321b2d9b
commit
730d7f84ca
@ -269,13 +269,6 @@ App.prototype.renderAppBar = function () {
|
||||
},
|
||||
}, 'MetaMask'),
|
||||
|
||||
h('span', {
|
||||
style: {},
|
||||
onClick: () => {
|
||||
props.dispatch(actions.setFeatureFlag('betaUI', false))
|
||||
},
|
||||
}, 'Leave Beta'),
|
||||
|
||||
]),
|
||||
|
||||
h('div.header__right-actions', [
|
||||
|
@ -229,6 +229,26 @@ class Settings extends Component {
|
||||
)
|
||||
}
|
||||
|
||||
renderOldUI () {
|
||||
const { setFeatureFlagToBeta } = this.props
|
||||
|
||||
return (
|
||||
h('div.settings__content-row', [
|
||||
h('div.settings__content-item', 'Use old UI'),
|
||||
h('div.settings__content-item', [
|
||||
h('div.settings__content-item-col', [
|
||||
h('button.settings__clear-button.settings__clear-button--red', {
|
||||
onClick (event) {
|
||||
event.preventDefault()
|
||||
setFeatureFlagToBeta()
|
||||
},
|
||||
}, 'Use old UI'),
|
||||
]),
|
||||
]),
|
||||
])
|
||||
)
|
||||
}
|
||||
|
||||
renderSettingsContent () {
|
||||
const { warning } = this.props
|
||||
|
||||
@ -241,10 +261,11 @@ class Settings extends Component {
|
||||
this.renderNewRpcUrl(),
|
||||
this.renderStateLogs(),
|
||||
this.renderSeedWords(),
|
||||
this.renderOldUI(),
|
||||
])
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
renderLogo () {
|
||||
return (
|
||||
h('div.settings__info-logo-wrapper', [
|
||||
@ -362,6 +383,7 @@ Settings.propTypes = {
|
||||
setRpcTarget: PropTypes.func,
|
||||
displayWarning: PropTypes.func,
|
||||
revealSeedConfirmation: PropTypes.func,
|
||||
setFeatureFlagToBeta: PropTypes.func,
|
||||
warning: PropTypes.string,
|
||||
goHome: PropTypes.func,
|
||||
}
|
||||
@ -381,6 +403,7 @@ const mapDispatchToProps = dispatch => {
|
||||
displayWarning: warning => dispatch(actions.displayWarning(warning)),
|
||||
revealSeedConfirmation: () => dispatch(actions.revealSeedConfirmation()),
|
||||
setUseBlockie: value => dispatch(actions.setUseBlockie(value)),
|
||||
setFeatureFlagToBeta: () => dispatch(actions.setFeatureFlag('betaUI', false)),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user