Moved SidebarHidden as a temporary hack
This commit is contained in:
@@ -121,6 +121,21 @@ render(
|
|||||||
path={`/doc/${matchDocumentSlug}`}
|
path={`/doc/${matchDocumentSlug}`}
|
||||||
component={Document}
|
component={Document}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Route exact path="/search" component={Search} />
|
||||||
|
<Route exact path="/search/:query" component={Search} />
|
||||||
|
<Route exact path="/settings" component={Settings} />
|
||||||
|
|
||||||
|
<Route
|
||||||
|
exact
|
||||||
|
path="/keyboard-shortcuts"
|
||||||
|
component={KeyboardShortcuts}
|
||||||
|
/>
|
||||||
|
<Route exact path="/developers" component={Api} />
|
||||||
|
|
||||||
|
<Route path="/404" component={Error404} />
|
||||||
|
|
||||||
|
{/* This is a bit busted, break any view after it */}
|
||||||
<SidebarHidden>
|
<SidebarHidden>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route
|
<Route
|
||||||
@@ -136,18 +151,6 @@ render(
|
|||||||
</Switch>
|
</Switch>
|
||||||
</SidebarHidden>
|
</SidebarHidden>
|
||||||
|
|
||||||
<Route exact path="/search" component={Search} />
|
|
||||||
<Route exact path="/search/:query" component={Search} />
|
|
||||||
<Route exact path="/settings" component={Settings} />
|
|
||||||
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/keyboard-shortcuts"
|
|
||||||
component={KeyboardShortcuts}
|
|
||||||
/>
|
|
||||||
<Route exact path="/developers" component={Api} />
|
|
||||||
|
|
||||||
<Route path="/404" component={Error404} />
|
|
||||||
<Route component={notFoundSearch} />
|
<Route component={notFoundSearch} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
Reference in New Issue
Block a user