diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-07-06 17:34:06 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-07-06 17:34:06 +0200 |
commit | 7bfb87a0beda7247f1edc687b34144859813758a (patch) | |
tree | ed2d4b3d81b13d14d631938f01c151113b940635 /src/client/react/components/page | |
parent | 53bb2628748e5967514251606d1fece9f4388b35 (diff) |
client: Remove url helpers
Diffstat (limited to 'src/client/react/components/page')
-rw-r--r-- | src/client/react/components/page/User.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js index af14188..1ad6149 100644 --- a/src/client/react/components/page/User.js +++ b/src/client/react/components/page/User.js @@ -25,9 +25,9 @@ import { Redirect } from 'react-router-dom'; import { Elevation } from 'rmwc/Elevation'; import Search from '../container/Search'; import View from '../container/View'; -import { userFromMatch } from '../../lib/url'; import WeekSelector from '../container/WeekSelector'; import RoomFinder from '../container/RoomFinder'; +import { selectUser } from '../../store/selectors'; import './User.scss'; @@ -70,8 +70,8 @@ class UserPage extends React.Component { } } -const mapStateToProps = (state, { match }) => ({ - user: userFromMatch(match), +const mapStateToProps = state => ({ + user: selectUser(state), }); export default connect(mapStateToProps)(UserPage); |