0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 20:12:41 +00:00

Change json file to js so we can use multiline strings

This commit is contained in:
Trevor Buckner
2023-06-24 00:40:10 -04:00
parent 37c88b83f1
commit 32229c6e6e
3 changed files with 42 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ const UIPage = require('../basePages/uiPage/uiPage.jsx');
const Markdown = require('../../../../shared/naturalcrit/markdown.js');
const ErrorIndex = require('./errors/errorIndex.json');
const ErrorIndex = require('./errors/errorIndex.js');
const ErrorPage = createClass({
displayName : 'ErrorPage',
@@ -23,7 +23,7 @@ const ErrorPage = createClass({
},
render : function(){
const errorText = ErrorIndex[this.props.brew.status.toString()] || '';
const errorText = ErrorIndex()[this.props.brew.status.toString()] || '';
return <UIPage brew={{ title: 'Crit Fail!' }}>
<h1>{`Error ${this.props.brew.status || '000'}`}</h1>