Added error test page
This commit is contained in:
parent
7423502a01
commit
650a30a244
2 changed files with 38 additions and 0 deletions
|
|
@ -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 => (
|
|||
<Public path="/login" component={Login} {...props} />
|
||||
<Route path="/logout" component={Logout} {...props} />
|
||||
<Route path="/sandbox" component={Sandbox} {...props} />
|
||||
<Route path="/error" component={TestError} {...props} />
|
||||
{/* <Route path="/subscriptions" render={props => <FireSubscription focusInput {...props} />} /> */}
|
||||
|
||||
<Route name="verify-email" path="/verify-email/:token" component={VerifyEmail} />
|
||||
|
|
|
|||
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