mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 06:33:32 +00:00
Remove unused defaultProps
The defaultProps are not used, and may be a relic of previous error page function.
This commit is contained in:
@@ -13,15 +13,6 @@ const ErrorIndex = require('./errors/errorIndex.js');
|
|||||||
const ErrorPage = createClass({
|
const ErrorPage = createClass({
|
||||||
displayName : 'ErrorPage',
|
displayName : 'ErrorPage',
|
||||||
|
|
||||||
getDefaultProps : function() {
|
|
||||||
return {
|
|
||||||
ver : '0.0.0',
|
|
||||||
errorId : '',
|
|
||||||
text : '# Oops \n We could not find a brew with that id. **Sorry!**',
|
|
||||||
error : {}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
render : function(){
|
render : function(){
|
||||||
const errorText = ErrorIndex(this.props)[this.props.brew.HBErrorCode.toString()] || '';
|
const errorText = ErrorIndex(this.props)[this.props.brew.HBErrorCode.toString()] || '';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user