Updated list components

Updated list edit/add modal to be more user friendly. Added titles where necessary. Spaced out components/divs. Added text buttons instead of checkmark and plus icons for list titles. Updated title where list is empty of accounts/posts where user can click to add people to list. Added add/remove to list from account action dropdown
This commit is contained in:
mgabdev
2019-07-19 15:31:55 -04:00
parent cfe4d7530c
commit 60c77a6ca3
8 changed files with 140 additions and 60 deletions

View File

@@ -16,6 +16,7 @@ import ScrollableList from '../../components/scrollable_list';
const messages = defineMessages({
heading: { id: 'column.lists', defaultMessage: 'Lists' },
subheading: { id: 'lists.subheading', defaultMessage: 'Your lists' },
add: { id: 'lists.new.create', defaultMessage: 'Add List' },
});
const getOrderedLists = createSelector([state => state.get('lists')], lists => {
@@ -60,8 +61,10 @@ class Lists extends ImmutablePureComponent {
return (
<Column icon='list-ul' heading={intl.formatMessage(messages.heading)} backBtnSlim>
<br/>
<ColumnSubheading text={intl.formatMessage(messages.add)} />
<NewListForm />
<br/>
<ColumnSubheading text={intl.formatMessage(messages.subheading)} />
<ScrollableList
scrollKey='lists'