aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/page
diff options
context:
space:
mode:
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);