Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
export const Default = () => (
<ContentSwitcher onChange={() => {}}>
<Switch name="one" text="First section" />
<Switch name="two" text="Second section" />
<Switch name="two">Second section</Switch>
<Switch name="three" text="Third section" />
</ContentSwitcher>
);
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/components/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ Switch.propTypes = {

Switch.defaultProps = {
selected: false,
text: 'Provide text',
onClick: () => {},
onKeyDown: () => {},
};
Expand Down