Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Commit a76f221

Browse files
committed
Change labelText prop to node to match onText and offText
1 parent 5384aa1 commit a76f221

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface SwitchPropTypes {
1313

1414
onText?: any; // PropTypes.node?,
1515
offText?: any;
16-
labelText?: string;
16+
labelText?: any;
1717

1818
inverse?: boolean;
1919
animate?: boolean;

src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ Switch.propTypes = {
447447

448448
onText: PropTypes.node,
449449
offText: PropTypes.node,
450-
labelText: PropTypes.string,
450+
labelText: PropTypes.node,
451451

452452
inverse: PropTypes.bool,
453453
animate: PropTypes.bool,

0 commit comments

Comments
 (0)