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

@ -25,7 +25,8 @@ type Props = {
count: number,
};
@observer class DocumentViews extends Component {
@observer
class DocumentViews extends Component {
anchor: HTMLElement;
store: DocumentViewersStore;
props: Props;
@ -55,19 +56,16 @@ type Props = {
return (
<Container align="center">
<a ref={this.setRef} onClick={this.openPopover}>
Viewed
{' '}
{this.props.count}
{' '}
{this.props.count === 1 ? 'time' : 'times'}
Viewed {this.props.count} {this.props.count === 1 ? 'time' : 'times'}
</a>
{this.state.opened &&
{this.state.opened && (
<Popover anchor={this.anchor} onClose={this.closePopover}>
<DocumentViewers
onMount={this.store.fetchViewers}
viewers={this.store.viewers}
/>
</Popover>}
</Popover>
)}
</Container>
);
}