Quick fix to add slice to other routes using TabContainer (#235)

This commit is contained in:
Dillon Dumesnil
2020-10-06 11:57:18 -07:00
committed by GitHub
parent f6aebc7d29
commit 36f8dd81cd

View File

@@ -37,17 +37,17 @@ subscribe(APP_READY, () => {
<Switch> <Switch>
<Route path="/redirect" component={CoursewareRedirectLandingPage} /> <Route path="/redirect" component={CoursewareRedirectLandingPage} />
<Route path="/course/:courseId/home"> <Route path="/course/:courseId/home">
<TabContainer tab="outline" fetch={fetchOutlineTab}> <TabContainer tab="outline" fetch={fetchOutlineTab} slice="courseHome">
<OutlineTab /> <OutlineTab />
</TabContainer> </TabContainer>
</Route> </Route>
<Route path="/course/:courseId/dates"> <Route path="/course/:courseId/dates">
<TabContainer tab="dates" fetch={fetchDatesTab}> <TabContainer tab="dates" fetch={fetchDatesTab} slice="courseHome">
<DatesTab /> <DatesTab />
</TabContainer> </TabContainer>
</Route> </Route>
<Route path="/course/:courseId/progress"> <Route path="/course/:courseId/progress">
<TabContainer tab="progress" fetch={fetchProgressTab}> <TabContainer tab="progress" fetch={fetchProgressTab} slice="courseHome">
<ProgressTab /> <ProgressTab />
</TabContainer> </TabContainer>
</Route> </Route>