Source version number from package.json

This commit is contained in:
Will O'Beirne 2018-02-19 14:11:00 -05:00
parent 00cea6f548
commit 72363fd924
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
import React from 'react'; // For ANNOUNCEMENT_MESSAGE jsx
import { getValues } from '../utils/helpers';
import packageJson from '../../package.json';
export const languages = require('./languages.json');
// Displays in the footer
export const VERSION = '0.3.2 (BETA)';
export const VERSION = `${packageJson.version} (BETA)`;
export const N_FACTOR = 8192;
// Displays at the top of the site, make message empty string to remove.