about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/list_editor/index.js
diff options
context:
space:
mode:
authorash lea <ashlea@protonmail.com>2019-01-05 15:15:00 -0500
committerThibG <thib@sitedethib.com>2019-01-06 13:03:57 +0100
commitdc501c4134299a12146e7f7aec4676c492235a24 (patch)
tree47e4d0e2fba8dce8beae63492b6ff0706979598f /app/javascript/flavours/glitch/features/list_editor/index.js
parent7baf15675fbf068b8c455377f917746624b56258 (diff)
add list title editing
Diffstat (limited to 'app/javascript/flavours/glitch/features/list_editor/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/list_editor/index.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/list_editor/index.js b/app/javascript/flavours/glitch/features/list_editor/index.js
index b3be3070a..5f552b113 100644
--- a/app/javascript/flavours/glitch/features/list_editor/index.js
+++ b/app/javascript/flavours/glitch/features/list_editor/index.js
@@ -7,11 +7,11 @@ import { injectIntl } from 'react-intl';
 import { setupListEditor, clearListSuggestions, resetListEditor } from 'flavours/glitch/actions/lists';
 import AccountContainer from './containers/account_container';
 import SearchContainer from './containers/search_container';
+import EditListForm from './components/edit_list_form';
 import Motion from 'flavours/glitch/util/optional_motion';
 import spring from 'react-motion/lib/spring';
 
 const mapStateToProps = state => ({
-  title: state.getIn(['listEditor', 'title']),
   accountIds: state.getIn(['listEditor', 'accounts', 'items']),
   searchAccountIds: state.getIn(['listEditor', 'suggestions', 'items']),
 });
@@ -33,7 +33,6 @@ export default class ListEditor extends ImmutablePureComponent {
     onInitialize: PropTypes.func.isRequired,
     onClear: PropTypes.func.isRequired,
     onReset: PropTypes.func.isRequired,
-    title: PropTypes.string.isRequired,
     accountIds: ImmutablePropTypes.list.isRequired,
     searchAccountIds: ImmutablePropTypes.list.isRequired,
   };
@@ -49,12 +48,12 @@ export default class ListEditor extends ImmutablePureComponent {
   }
 
   render () {
-    const { title, accountIds, searchAccountIds, onClear } = this.props;
+    const { accountIds, searchAccountIds, onClear } = this.props;
     const showSearch = searchAccountIds.size > 0;
 
     return (
       <div className='modal-root__modal list-editor'>
-        <h4>{title}</h4>
+        <EditListForm />
 
         <SearchContainer />