Skip to content

Commit

Permalink
add createPortal to storybook wp.element
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Oct 31, 2019
1 parent 434b9ad commit 670fdd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
createRef,
Fragment,
createElement,
createPortal,
} from '@wordpress/element';
import {
withFilters,
Expand Down Expand Up @@ -68,6 +69,7 @@ wp.element.Component = Component;
wp.element.createRef = createRef;
wp.element.Fragment = Fragment;
wp.element.createElement = createElement;
wp.element.createPortal = createPortal;
wp.components.withFilters = withFilters;
window.lodash = lodash;
wp.i18n.__ = __ || {};
Expand Down

0 comments on commit 670fdd3

Please sign in to comment.