Collections got descriptions now

This commit is contained in:
Tom Moor
2018-11-18 01:13:28 -08:00
parent 3718a9609d
commit 919bca6769
7 changed files with 110 additions and 48 deletions

View File

@@ -5,6 +5,7 @@ import { observer, inject } from 'mobx-react';
import { withRouter, Link } from 'react-router-dom';
import styled from 'styled-components';
import { CollectionIcon, NewDocumentIcon, PinIcon } from 'outline-icons';
import RichMarkdownEditor from 'rich-markdown-editor';
import { newDocumentUrl } from 'utils/routeHelpers';
import CollectionsStore from 'stores/CollectionsStore';
@@ -157,6 +158,13 @@ class CollectionScene extends React.Component<Props> {
/>{' '}
{this.collection.name}
</Heading>
{this.collection.description && (
<RichMarkdownEditor
key={this.collection.description}
defaultValue={this.collection.description}
readOnly
/>
)}
{hasPinnedDocuments && (
<React.Fragment>