2017-06-26 00:21:33 +00:00
|
|
|
// @flow
|
|
|
|
import React, { Component } from 'react';
|
2017-06-28 05:15:29 +00:00
|
|
|
import { observer, inject } from 'mobx-react';
|
2017-06-26 00:21:33 +00:00
|
|
|
import CenteredContent from 'components/CenteredContent';
|
|
|
|
import PageTitle from 'components/PageTitle';
|
|
|
|
import DocumentList from 'components/DocumentList';
|
2017-06-28 05:15:29 +00:00
|
|
|
import DocumentsStore from 'stores/DocumentsStore';
|
2017-06-26 00:21:33 +00:00
|
|
|
|
|
|
|
@observer class Starred extends Component {
|
2017-06-28 05:15:29 +00:00
|
|
|
props: {
|
|
|
|
documents: DocumentsStore,
|
|
|
|
};
|
2017-06-26 00:21:33 +00:00
|
|
|
|
|
|
|
componentDidMount() {
|
2017-06-28 05:15:29 +00:00
|
|
|
this.props.documents.fetchStarred();
|
2017-06-26 00:21:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2017-06-26 02:21:08 +00:00
|
|
|
<CenteredContent column auto>
|
2017-06-26 00:21:33 +00:00
|
|
|
<PageTitle title="Starred" />
|
|
|
|
<h1>Starred</h1>
|
2017-07-09 18:26:17 +00:00
|
|
|
<DocumentList documents={this.props.documents.starred} />
|
2017-06-26 02:21:08 +00:00
|
|
|
</CenteredContent>
|
2017-06-26 00:21:33 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-28 05:15:29 +00:00
|
|
|
export default inject('documents')(Starred);
|