Fix crash in onboarding modal

Fixes #1027
This commit is contained in:
Thibaut Girka 2019-05-03 18:54:06 +02:00 committed by ThibG
parent fcbf557bd2
commit 7617f78359
2 changed files with 5 additions and 3 deletions

View File

@ -321,8 +321,8 @@ class ComposeForm extends ImmutablePureComponent {
onSuggestionsClearRequested={onClearSuggestions} onSuggestionsClearRequested={onClearSuggestions}
onSuggestionSelected={this.onSpoilerSuggestionSelected} onSuggestionSelected={this.onSpoilerSuggestionSelected}
searchTokens={[':']} searchTokens={[':']}
id='glitch.composer.spoiler.input' id='glitch.composer.spoiler.input'
className='spoiler-input__input' className='spoiler-input__input'
/> />
</div> </div>

View File

@ -6,7 +6,7 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ReactSwipeableViews from 'react-swipeable-views'; import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames'; import classNames from 'classnames';
import Permalink from 'flavours/glitch/components/permalink'; 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 DrawerAccount from 'flavours/glitch/features/compose/components/navigation_bar';
import Search from 'flavours/glitch/features/compose/components/search'; import Search from 'flavours/glitch/features/compose/components/search';
import ColumnHeader from './column_header'; import ColumnHeader from './column_header';
@ -48,6 +48,8 @@ const PageTwo = ({ intl, myAccount }) => (
<ComposeForm <ComposeForm
privacy='public' privacy='public'
text='Awoo! #introductions' text='Awoo! #introductions'
spoilerText=''
suggestions={ [] }
/> />
</div> </div>
</div> </div>