Skip to content

Commit

Permalink
docs(modal-wrapper): remove prop, fix renderTriggerButtonIcon knob (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jendowns authored and asudoh committed Dec 6, 2019
1 parent 408cd59 commit bf14fb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const props = () => {
'Modal contains scrollable content (hasScrollingContent)',
true
),
renderTriggerButtonIcon: typeof iconToUse === 'function' && iconToUse,
triggerButtonIcon: typeof iconToUse !== 'function' && iconToUse,
renderTriggerButtonIcon:
typeof iconToUse === 'function' ? iconToUse : undefined,
modalLabel: text('The modal label (optional) (modalLabel)', 'Label'),
modalHeading: text('The modal heading (modalHeading)', 'Modal'),
selectorPrimaryFocus: text(
Expand Down

0 comments on commit bf14fb7

Please sign in to comment.