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

@@ -152,7 +152,7 @@ class DocumentPreview extends React.Component<Props> {
>
<Heading>
<Title text={document.title} highlight={highlight} />
{document.publishedAt && (
{!document.isDraft && (
<Actions>
{document.starred ? (
<StyledStar onClick={this.unstar} solid />

13
app/components/Heading.js Normal file
View File

@@ -0,0 +1,13 @@
// @flow
import styled from 'styled-components';
const Heading = styled.h1`
display: flex;
svg {
margin-left: -6px;
margin-right: 2px;
}
`;
export default Heading;