Simplify Test page

This commit is contained in:
vjrj 2018-03-03 08:41:53 +01:00
parent fa4af5e5fe
commit 5996f3a74a

View file

@ -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));