Skip to content

Commit

Permalink
Convert arrow -> to function, to get CI to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrause committed Jun 2, 2017
1 parent 3c7b72b commit 0a0f4c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/components/app/components/ProtectedRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const mapStateToProps = state => ({
hasAuth: selectors.hasToken(state)
})

export const DumbProtectedRoute = ({ hasAuth, ...props }) =>
hasAuth ? <Route {...props} /> : <Redirect to="/login" />
export function DumbProtectedRoute({ hasAuth, ...props }) {
return hasAuth ? <Route {...props} /> : <Redirect to="/login" />
}

DumbProtectedRoute.propTypes = {
hasAuth: PropTypes.bool.isRequired
Expand Down

0 comments on commit 0a0f4c4

Please sign in to comment.