1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Show correct MetaMask version number in the Info page

This commit is contained in:
Alexander Tseung 2018-04-18 18:34:44 -07:00
parent 4544d57f26
commit 2fdf45b418

View File

@ -3,6 +3,14 @@ const PropTypes = require('prop-types')
const h = require('react-hyperscript')
class Info extends Component {
constructor (props) {
super(props)
this.state = {
version: global.platform.getVersion(),
}
}
renderLogo () {
return (
h('div.settings__info-logo-wrapper', [
@ -76,7 +84,7 @@ class Info extends Component {
this.renderLogo(),
h('div.settings__info-item', [
h('div.settings__info-version-header', 'MetaMask Version'),
h('div.settings__info-version-number', '4.0.0'),
h('div.settings__info-version-number', this.state.version),
]),
h('div.settings__info-item', [
h(