fix(content-switcher): provide empty default onChange prop
MODIFY
packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
@@ -749,6 +749,7 @@ Map {
},
"ContentSwitcher" => Object {
"defaultProps": Object {
+ "onChange": [Function],
"selectedIndex": 0,
"selectionMode": "automatic",
},

MODIFY
packages/react/src/components/ContentSwitcher/ContentSwitcher.js
packages/react/src/components/ContentSwitcher/ContentSwitcher.js
@@ -60,6 +60,7 @@ export default class ContentSwitcher extends React.Component {
static defaultProps = {
selectedIndex: 0,
selectionMode: 'automatic',
+ onChange: () => {},
};
static getDerivedStateFromProps({ selectedIndex }, state) {

fix(content-switcher): provide empty default onChange prop (#6945)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>