Added error test page
This commit is contained in:
parent
7423502a01
commit
650a30a244
2 changed files with 38 additions and 0 deletions
36
imports/ui/pages/TestError/TestError.js
Normal file
36
imports/ui/pages/TestError/TestError.js
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* eslint-disable react/jsx-indent-props */
|
||||
/* eslint-disable import/no-absolute-path */
|
||||
/* eslint-disable import/no-absolute-path */
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { translate } from 'react-i18next';
|
||||
import { withTracker } from 'meteor/react-meteor-data';
|
||||
|
||||
class TestError extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.t = props.t;
|
||||
this.state = {
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
throw new Error('Just testing');
|
||||
return (
|
||||
<div />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
TestError.propTypes = {
|
||||
t: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
TestError.defaultProps = {
|
||||
};
|
||||
|
||||
// export default translate([], { wait: true })(TestError);
|
||||
export default translate([], { wait: true })(withTracker(props => ({
|
||||
// props.something
|
||||
}))(TestError));
|
||||
Loading…
Add table
Add a link
Reference in a new issue