aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/page
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-07-06 17:34:06 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-07-06 17:34:06 +0200
commit7bfb87a0beda7247f1edc687b34144859813758a (patch)
treeed2d4b3d81b13d14d631938f01c151113b940635 /src/client/react/components/page
parent53bb2628748e5967514251606d1fece9f4388b35 (diff)
client: Remove url helpers
Diffstat (limited to 'src/client/react/components/page')
-rw-r--r--src/client/react/components/page/User.js6
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);