Publishing Info (#70)

* Restore publishing info
Closes #68

* Prevent document remounting / refetching when changing between edit / read

* Merge master
This commit is contained in:
Tom Moor
2017-05-26 21:58:16 -07:00
committed by GitHub
parent 970bde3e1d
commit 0e293b38c7
8 changed files with 79 additions and 82 deletions

View File

@ -54,7 +54,6 @@ const KeyboardShortcuts = () => (
<Flatpage title="Keyboard shortcuts" content={flatpages.keyboard} />
);
const Api = () => <Flatpage title="API" content={flatpages.api} />;
const DocumentEdit = () => <Document editDocument />;
const DocumentNew = () => <Document newDocument />;
const DocumentNewChild = () => <Document newChildDocument />;
@ -70,7 +69,7 @@ render(
<Route exact path="/dashboard" component={Dashboard} />
<Route exact path="/collections/:id" component={Atlas} />
<Route exact path="/d/:id" component={Document} />
<Route exact path="/d/:id/edit" component={DocumentEdit} />
<Route exact path="/d/:id/:edit" component={Document} />
<Route
exact
path="/collections/:id/new"