Merge pull request #655 from betagouv/quickfix

🐛 répare le dépliement des checklist
pull/656/head
Johan Girod 2019-09-06 10:57:53 +02:00 committed by GitHub
commit 98753937ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -71,10 +71,14 @@ class CheckItemComponent extends Component<CheckItemProps, CheckItemState> {
</div>
{this.state.displayExplanations && this.props.explanations && (
<Animate.appear>
<Markdown
className="ui__ checklist-explanation"
source={this.props.explanations}
/>
{typeof this.props.explanations === 'string' ? (
<Markdown
className="ui__ checklist-explanation"
source={this.props.explanations}
/>
) : (
this.props.explanations
)}
</Animate.appear>
)}
</ScrollToElement>