From cb62296cb85d0b35f50681c55813dfd788b2f7d7 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Mon, 18 Nov 2019 18:43:27 -0600 Subject: [PATCH 1/2] fix(modal): update oneOf prop type to use array (#4716) --- packages/react/src/components/Modal/Modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Modal/Modal.js b/packages/react/src/components/Modal/Modal.js index 265a39b5772c..0ab5272424db 100644 --- a/packages/react/src/components/Modal/Modal.js +++ b/packages/react/src/components/Modal/Modal.js @@ -135,7 +135,7 @@ export default class Modal extends Component { /** * Specify the size variant. */ - size: PropTypes.oneOf('xs', 'sm', 'lg'), + size: PropTypes.oneOf(['xs', 'sm', 'lg']), /** * Specify whether the modal should use 3rd party `focus-trap-react` for the focus-wrap feature. From 033a91f9291d870d1a1d785ffcbd4b78bd71d789 Mon Sep 17 00:00:00 2001 From: Alessandra Davila Date: Mon, 18 Nov 2019 19:17:20 -0600 Subject: [PATCH 2/2] fix(content-switcher): fix dap violations (#4695) --- .../react/src/components/ContentSwitcher/ContentSwitcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/ContentSwitcher/ContentSwitcher.js b/packages/react/src/components/ContentSwitcher/ContentSwitcher.js index bb27fbab35ef..20a8dd6058a0 100644 --- a/packages/react/src/components/ContentSwitcher/ContentSwitcher.js +++ b/packages/react/src/components/ContentSwitcher/ContentSwitcher.js @@ -110,7 +110,7 @@ export default class ContentSwitcher extends React.Component { const classes = classNames(`${prefix}--content-switcher`, className); return ( -
+
{React.Children.map(children, (child, index) => React.cloneElement(child, { index,