about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-05-03 18:54:06 +0200
committerThibG <thib@sitedethib.com>2019-05-03 19:24:54 +0200
commit7617f78359e3767b0c0311928a786d7007687d17 (patch)
tree672757327a74a4b1b76a52eabe2f813422f13f6f /app/javascript
parentfcbf557bd2c4db3734e328ffe434895457836478 (diff)
Fix crash in onboarding modal
Fixes #1027
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/compose_form.js4
-rw-r--r--app/javascript/flavours/glitch/features/ui/components/onboarding_modal.js4
2 files changed, 5 insertions, 3 deletions
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 bd6d5b1fa..e8f000b1e 100644
--- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js
+++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
@@ -321,8 +321,8 @@ class ComposeForm extends ImmutablePureComponent {
             onSuggestionsClearRequested={onClearSuggestions}
             onSuggestionSelected={this.onSpoilerSuggestionSelected}
             searchTokens={[':']}
-             id='glitch.composer.spoiler.input'
-             className='spoiler-input__input'
+            id='glitch.composer.spoiler.input'
+            className='spoiler-input__input'
           />
         </div>
 
diff --git a/app/javascript/flavours/glitch/features/ui/components/onboarding_modal.js b/app/javascript/flavours/glitch/features/ui/components/onboarding_modal.js
index f13e2e645..3fda97afc 100644
--- a/app/javascript/flavours/glitch/features/ui/components/onboarding_modal.js
+++ b/app/javascript/flavours/glitch/features/ui/components/onboarding_modal.js
@@ -6,7 +6,7 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
 import ReactSwipeableViews from 'react-swipeable-views';
 import classNames from 'classnames';
 import Permalink from 'flavours/glitch/components/permalink';
-import { ComposeForm } from 'flavours/glitch/features/compose/components/compose_form';
+import ComposeForm from 'flavours/glitch/features/compose/components/compose_form';
 import DrawerAccount from 'flavours/glitch/features/compose/components/navigation_bar';
 import Search from 'flavours/glitch/features/compose/components/search';
 import ColumnHeader from './column_header';
@@ -48,6 +48,8 @@ const PageTwo = ({ intl, myAccount }) => (
         <ComposeForm
           privacy='public'
           text='Awoo! #introductions'
+          spoilerText=''
+          suggestions={ [] }
         />
       </div>
     </div>