mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
c341abaea6
* Fix storybook * Update policies * Bump all Storybook dependencies to the latest version * Add Storybook dependencies to depcheck ignore list * Update policy-override.json * Fix SectionShape circular dependency * Change policy override for eslint-scope * Fix some Webpack build issues * Add missing dependency Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
import PropTypes from 'prop-types';
|
|
|
|
export const SectionShape = {
|
|
props: PropTypes.object,
|
|
element: PropTypes.string,
|
|
key: PropTypes.string,
|
|
};
|
|
|
|
export const ValidChildren = PropTypes.oneOfType([
|
|
PropTypes.string,
|
|
PropTypes.shape(SectionShape),
|
|
PropTypes.arrayOf(
|
|
PropTypes.oneOfType([PropTypes.shape(SectionShape), PropTypes.string]),
|
|
),
|
|
]);
|
|
|
|
SectionShape.children = ValidChildren;
|