0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-11 06:52:38 +00:00

Package version is now loaded into the navbar

This commit is contained in:
Scott Tolksdorf
2016-08-20 12:02:48 -04:00
parent cd454e82ef
commit 62d70022e7
9 changed files with 51 additions and 25 deletions

View File

@@ -6,7 +6,8 @@ var Nav = require('naturalcrit/nav/nav.jsx');
var Navbar = React.createClass({
getInitialState: function() {
return {
showNonChromeWarning : false
showNonChromeWarning : false,
ver : '0.0.0'
};
},
@@ -34,7 +35,7 @@ var Navbar = React.createClass({
<Nav.item href='/' className='homebrewLogo'>
<div>The Homebrewery</div>
</Nav.item>
<Nav.item>v2.2.8</Nav.item>
<Nav.item>{`v${this.props.ver}`}</Nav.item>
{this.renderChromeWarning()}
</Nav.section>