Skip to content

Commit

Permalink
fix: Update property names to match interface expected by Composer (#116
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rhystmills authored Sep 10, 2021
1 parent a8a3569 commit 0f94f28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/elements/pullquote/PullquoteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const PullquoteElementForm: React.FunctionComponent<Props> = ({
<Column width={2 / 3}>
<FieldWrapper
label="Pullquote"
field={fields.pullquote}
errors={errors.pullquote}
field={fields.html}
errors={errors.html}
/>
</Column>
<Column width={1 / 3}>
Expand All @@ -32,7 +32,7 @@ export const PullquoteElementForm: React.FunctionComponent<Props> = ({
field={fields.attribution}
errors={errors.attribution}
/>
<CustomDropdownView label="Weighting" field={fields.weighting} />
<CustomDropdownView label="Weighting" field={fields.role} />
</Column>
</Columns>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/elements/pullquote/PullquoteSpec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { createReactElementSpec } from "../../renderers/react/createReactElement
import { PullquoteElementForm } from "./PullquoteForm";

export const pullquoteFields = {
pullquote: createTextField({ isMultiline: true, rows: 4 }),
html: createTextField({ isMultiline: true, rows: 4 }),
attribution: createTextField(),
weighting: createCustomDropdownField("supporting", [
role: createCustomDropdownField("supporting", [
{ text: "supporting (default)", value: "supporting" },
{ text: "inline", value: "inline" },
{ text: "showcase", value: "showcase" },
Expand Down

0 comments on commit 0f94f28

Please sign in to comment.