dashboard -> home (#1194)

This commit is contained in:
Tom Moor
2020-02-26 21:10:20 -08:00
committed by GitHub
parent d06ec5ce0c
commit dac2d43f55
12 changed files with 21 additions and 20 deletions

View File

@ -31,16 +31,16 @@ class Dashboard extends React.Component<Props> {
<PageTitle title="Home" />
<h1>Home</h1>
<Tabs>
<Tab to="/dashboard" exact>
<Tab to="/home" exact>
Recently updated
</Tab>
<Tab to="/dashboard/recent" exact>
<Tab to="/home/recent" exact>
Recently viewed
</Tab>
<Tab to="/dashboard/created">Created by me</Tab>
<Tab to="/home/created">Created by me</Tab>
</Tabs>
<Switch>
<Route path="/dashboard/recent">
<Route path="/home/recent">
<PaginatedDocumentList
key="recent"
documents={documents.recentlyViewed}
@ -48,7 +48,7 @@ class Dashboard extends React.Component<Props> {
showCollection
/>
</Route>
<Route path="/dashboard/created">
<Route path="/home/created">
<PaginatedDocumentList
key="created"
documents={documents.createdByUser(user)}
@ -57,7 +57,7 @@ class Dashboard extends React.Component<Props> {
showCollection
/>
</Route>
<Route path="/dashboard">
<Route path="/home">
<PaginatedDocumentList
documents={documents.recentlyUpdated}
fetch={documents.fetchRecentlyUpdated}