diff --git a/imports/ui/layouts/App/App.js b/imports/ui/layouts/App/App.js index 8ff8489..2cdac13 100644 --- a/imports/ui/layouts/App/App.js +++ b/imports/ui/layouts/App/App.js @@ -27,6 +27,7 @@ import Subscriptions from '../../pages/Subscriptions/Subscriptions'; import NewSubscription from '../../pages/NewSubscription/NewSubscription'; import ViewSubscription from '../../pages/ViewSubscription/ViewSubscription'; import EditSubscription from '../../pages/EditSubscription/EditSubscription'; +import TestError from '../../pages/TestError/TestError'; import Signup from '../../pages/Signup/Signup'; import Auth from '../../pages/Auth/Auth'; import Login from '../../pages/Login/Login'; @@ -87,6 +88,7 @@ const App = props => ( + {/* } /> */} diff --git a/imports/ui/pages/TestError/TestError.js b/imports/ui/pages/TestError/TestError.js new file mode 100644 index 0000000..66f3721 --- /dev/null +++ b/imports/ui/pages/TestError/TestError.js @@ -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 ( +
+ ); + } +} + +TestError.propTypes = { + t: PropTypes.func.isRequired +}; + +TestError.defaultProps = { +}; + +// export default translate([], { wait: true })(TestError); +export default translate([], { wait: true })(withTracker(props => ({ + // props.something +}))(TestError));