Skip to content

Commit

Permalink
[form-builder] Pass BlockEditor description to DefaultFormField for r…
Browse files Browse the repository at this point in the history
…endering (#168)
  • Loading branch information
Thomas Drevon committed Sep 14, 2017
1 parent 825aa87 commit ab586eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,11 @@ export default class BlockEditor extends React.Component {

const hasError = validation && validation.messages && validation.messages.length > 0
const showLinkButton = this.customSpans.length > 0

return (
<FormField
label={type.title}
description={type.description}
labelFor={this._inputId}
level={level}
className={fullscreen ? styles.formFieldFullscreen : styles.formField}
Expand Down
1 change: 1 addition & 0 deletions packages/test-studio/schemas/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default {
{
name: 'defaults',
title: 'Content',
description: 'Profound description of what belongs here',
type: 'array',
of: [
{type: 'image', title: 'Image'},
Expand Down

0 comments on commit ab586eb

Please sign in to comment.