Simplify Test page
This commit is contained in:
parent
fa4af5e5fe
commit
5996f3a74a
1 changed files with 2 additions and 10 deletions
|
|
@ -3,20 +3,16 @@
|
||||||
/* eslint-disable import/no-absolute-path */
|
/* eslint-disable import/no-absolute-path */
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
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 {
|
class TestError extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.t = props.t;
|
|
||||||
this.state = {
|
this.state = {
|
||||||
};
|
};
|
||||||
|
throw new Error('Just testing');
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
throw new Error('Just testing');
|
|
||||||
return (
|
return (
|
||||||
<div />
|
<div />
|
||||||
);
|
);
|
||||||
|
|
@ -24,13 +20,9 @@ class TestError extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
TestError.propTypes = {
|
TestError.propTypes = {
|
||||||
t: PropTypes.func.isRequired
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TestError.defaultProps = {
|
TestError.defaultProps = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// export default translate([], { wait: true })(TestError);
|
export default TestError;
|
||||||
export default translate([], { wait: true })(withTracker(props => ({
|
|
||||||
// props.something
|
|
||||||
}))(TestError));
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue