Empty state language improvemnts

This commit is contained in:
Tom Moor
2018-08-06 23:22:20 -07:00
parent 1c9c2d8e26
commit 4674c10203
9 changed files with 30 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ import * as React from 'react';
import { observer, inject } from 'mobx-react';
import { NewDocumentIcon } from 'outline-icons';
import Heading from 'components/Heading';
import CenteredContent from 'components/CenteredContent';
import { ListPlaceholder } from 'components/LoadingPlaceholder';
import Empty from 'components/Empty';
@@ -30,9 +31,9 @@ class Drafts extends React.Component<Props> {
return (
<CenteredContent column auto>
<PageTitle title="Drafts" />
<h1>Drafts</h1>
<Heading>Drafts</Heading>
{showLoading && <ListPlaceholder />}
{showEmpty && <Empty>No drafts yet.</Empty>}
{showEmpty && <Empty>Youve not got any drafts at the moment.</Empty>}
<DocumentList documents={drafts} showCollection />
<Actions align="center" justify="flex-end">
<Action>