Skip to content

Commit 778fffc

Browse files
committed
Fix using Auth HOC for NotFound and PasswordChange
1 parent 9dede3f commit 778fffc

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

app/components/containers/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class App extends Component {
5858
<Route name="account-recovery" path="/account-recovery" component={AccountRecovery}/>
5959
<Route name="password-reset" path="/password-reset/:userId/:token" component={PasswordReset}/>
6060
<Route name="password-change" path="/password-change" component={Auth(PasswordChange)}/>
61-
<Route name="404" path="*" component={NotFound}/>
61+
<Route name="404" path="*" component={Auth(NotFound)}/>
6262
</Switch>
6363
</Fragment>
6464
);
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import Auth from './Auth';
32
import NotFound from '../presentation/NotFound';
43

5-
export default Auth(() => <NotFound/>);
4+
export default () => <NotFound/>;

app/components/containers/PasswordChange.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, {Component, Fragment} from 'react';
22
import {connect} from 'react-redux';
33
import {withRouter} from 'react-router-dom';
4-
import Auth from './Auth';
54
import {setAppBarTitle} from '../../actions/app/appActions';
65
import MessageBar from '../presentation/MessageBar';
76
import * as passwordChangeActions from '../../actions/passwordChange/passwordChangeActions';
@@ -89,4 +88,4 @@ const mapDispatchToProps = (dispatch) => {
8988
};
9089
};
9190

92-
export default Auth(withRouter(connect(mapStateToProps, mapDispatchToProps)(PasswordChange)));
91+
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(PasswordChange));

0 commit comments

Comments
 (0)