Upgrade prettier

This commit is contained in:
Tom Moor
2017-11-10 14:14:30 -08:00
parent c737b613e4
commit ab13f51d5d
79 changed files with 780 additions and 533 deletions

View File

@ -49,7 +49,7 @@ const DocumentLink = styled(Link)`
outline: none;
${StyledStar} {
opacity: .5;
opacity: 0.5;
&:hover {
opacity: 1;
@ -63,11 +63,12 @@ const DocumentLink = styled(Link)`
h3 {
margin-top: 0;
margin-bottom: .25em;
margin-bottom: 0.25em;
}
`;
@observer class DocumentPreview extends Component {
@observer
class DocumentPreview extends Component {
props: Props;
star = (ev: SyntheticEvent) => {
@ -89,13 +90,15 @@ const DocumentLink = styled(Link)`
<DocumentLink to={document.url} innerRef={innerRef} {...rest}>
<h3>
{document.title}
{document.starred
? <a onClick={this.unstar}>
<StyledStar solid />
</a>
: <a onClick={this.star}>
<StyledStar />
</a>}
{document.starred ? (
<a onClick={this.unstar}>
<StyledStar solid />
</a>
) : (
<a onClick={this.star}>
<StyledStar />
</a>
)}
</h3>
<PublishingInfo
document={document}