0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +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:
Gazook89
2024-04-13 10:30:04 -05:00
parent 9e71945a76
commit 6220e4f63f

View File

@@ -13,15 +13,6 @@ const ErrorIndex = require('./errors/errorIndex.js');
const ErrorPage = createClass({
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(){
const errorText = ErrorIndex(this.props)[this.props.brew.HBErrorCode.toString()] || '';