0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 01:22:44 +00:00

Basic ErrorPage functionality

This commit is contained in:
G.Ambatte
2023-06-19 21:06:38 +12:00
parent 9202f9c8eb
commit 9e1d53a30c
4 changed files with 46 additions and 15 deletions

View File

@@ -16,12 +16,12 @@ const ErrorPage = createClass({
getDefaultProps : function() {
return {
ver : '0.0.0',
errorId : ''
errorId : '',
text : '# Oops \n We could not find a brew with that id. **Sorry!**',
error : {}
};
},
text : '# Oops \n We could not find a brew with that id. **Sorry!**',
render : function(){
return <div className='errorPage sitePage'>
<Navbar ver={this.props.ver}>
@@ -39,7 +39,7 @@ const ErrorPage = createClass({
</Navbar>
<div className='content'>
<BrewRenderer text={this.text} />
<BrewRenderer text={this.props.brew.text} />
</div>
</div>;
}