Skip to content

Commit f72c1af

Browse files
committed
drop old auth check
1 parent fd0b566 commit f72c1af

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/shared/components/Contentful/Route.jsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { Route, Switch, Redirect } from 'react-router-dom';
1414
import Viewport from 'components/Contentful/Viewport';
1515
import PasswordScreen from 'components/Contentful/PasswordScreen';
1616
import { isomorphy, config } from 'topcoder-react-utils';
17-
import { connect } from 'react-redux';
1817
import cookies from 'browser-cookies';
1918
import { removeTrailingSlash } from 'utils/url';
2019

@@ -144,7 +143,7 @@ RedirectWithStatus.propTypes = {
144143
status: PT.number.isRequired,
145144
};
146145

147-
function ContentfulRoute(props) {
146+
export default function ContentfulRoute(props) {
148147
const {
149148
baseUrl,
150149
error404,
@@ -217,7 +216,6 @@ ContentfulRoute.defaultProps = {
217216
preview: false,
218217
spaceName: null,
219218
environment: null,
220-
auth: null,
221219
};
222220

223221
ContentfulRoute.propTypes = {
@@ -229,16 +227,4 @@ ContentfulRoute.propTypes = {
229227
preview: PT.bool,
230228
spaceName: PT.string,
231229
environment: PT.string,
232-
auth: PT.shape(),
233230
};
234-
235-
function mapStateToProps(state) {
236-
const auth = state.auth && state.auth.profile ? { ...state.auth } : null;
237-
return {
238-
auth,
239-
};
240-
}
241-
242-
export default connect(
243-
mapStateToProps,
244-
)(ContentfulRoute);

0 commit comments

Comments
 (0)