Skip to content

Commit

Permalink
Dynamically load version in About from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JDRomano2 committed May 20, 2018
1 parent 44ce3fb commit 91ebff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index/components/About.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import React from 'react';
import { Alert, Panel, Button } from 'react-bootstrap';

import { version } from '../../package.json';

const About = () =>
<div className="jumbotron">
<div className="container">
<h2>About VenomKB</h2>

<Panel bsStyle="primary">
<h4>Current version: 2.0.0-beta</h4>
<h4>Current version: {version}</h4>
</Panel>

<p>
Expand Down

0 comments on commit 91ebff8

Please sign in to comment.