]> cat aescling's git repositories - mastodon.git/commitdiff
Fix crash in onboarding modal
authorThibaut Girka <thib@sitedethib.com>
Fri, 3 May 2019 16:54:06 +0000 (18:54 +0200)
committerThibG <thib@sitedethib.com>
Fri, 3 May 2019 17:24:54 +0000 (19:24 +0200)
Fixes #1027

app/javascript/flavours/glitch/features/compose/components/compose_form.js
app/javascript/flavours/glitch/features/ui/components/onboarding_modal.js

index bd6d5b1fa026a599a619decc20f2484fdb38d7d7..e8f000b1ec4a1fff5b56e7e16a4033fdebe98a2c 100644 (file)
@@ -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>
 
index f13e2e645f388d0a13786709e08bb7c5e0d8b956..3fda97afc6aaca2cae9926ecc3ae29fc351d619f 100644 (file)
@@ -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>