aboutsummaryrefslogtreecommitdiff
path: root/src/client/react/components/page
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-01-28 15:43:11 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-01-28 15:43:11 +0100
commit8670ada517bc8beb69d152c82f282322b9ea8d64 (patch)
treede3d52fcdf48a69806a41e408065b7f119206610 /src/client/react/components/page
parent0c99c0b4d84f53675cc3d42fa518879789cc86b0 (diff)
Implement week selector in the view
Diffstat (limited to 'src/client/react/components/page')
-rw-r--r--src/client/react/components/page/User.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js
index 980070f..72e92c2 100644
--- a/src/client/react/components/page/User.js
+++ b/src/client/react/components/page/User.js
@@ -26,7 +26,8 @@ const App = ({ match, location }) => {
<WeekSelector urlWeek={week} />
</div>
</div>
- <View user={user} />
+ {/* The View object just wants the week number. */}
+ <View user={user} week={week.week()} />
</div>
);
};