diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2018-04-20 00:56:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 00:56:12 +0800 |
commit | 00efcf9e8ba34d448b628c98d32ad12d5be2ffc9 (patch) | |
tree | 486c143df8f811722e96310c697238a370e63595 /ui/app | |
parent | 73b2960e7f52e602af02a3fe4b2b457e740c00b5 (diff) | |
parent | 2fdf45b418133258377d9cfb46aae57954be5d29 (diff) | |
download | tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.tar tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.tar.gz tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.tar.bz2 tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.tar.lz tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.tar.xz tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.tar.zst tangerine-wallet-browser-00efcf9e8ba34d448b628c98d32ad12d5be2ffc9.zip |
Merge pull request #4030 from MetaMask/i4014-metamask-version
Show correct MetaMask version number in the Info page
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/pages/settings/info.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/app/components/pages/settings/info.js b/ui/app/components/pages/settings/info.js index eb9be66e6..bd9040499 100644 --- a/ui/app/components/pages/settings/info.js +++ b/ui/app/components/pages/settings/info.js @@ -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( |