From 4c6221929f608764c616c2b909eccdc8a17e8909 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 21 Apr 2019 15:57:06 +0200 Subject: Move ComposerTextareaIcons to TextareaIcons --- .../features/compose/components/compose_form.js | 7 +-- .../features/compose/components/textarea_icons.js | 59 ++++++++++++++++++++++ 2 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 app/javascript/flavours/glitch/features/compose/components/textarea_icons.js (limited to 'app/javascript/flavours/glitch/features/compose') diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js index 2ea137965..ae22f4d6d 100644 --- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js +++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js @@ -7,7 +7,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component'; // Components. import ComposerOptions from '../../composer/options'; import ComposerPublisher from '../../composer/publisher'; -import ComposerTextareaIcons from '../../composer/textarea/icons'; +import TextareaIcons from './textarea_icons'; import UploadFormContainer from '../containers/upload_form_container'; import PollFormContainer from '../containers/poll_form_container'; import WarningContainer from '../containers/warning_container'; @@ -347,10 +347,7 @@ class ComposeForm extends ImmutablePureComponent {
- + + {advancedOptions ? iconMap.map( + ([key, icon, message]) => advancedOptions.get(key) ? ( + + + + ) : null + ) : null} +
+ ); + } +} -- cgit