Skip to content

Commit 6de84ad

Browse files
Checkbox: Checkprops warning typo
1 parent 00bb148 commit 6de84ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/checkbox/check-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== 'production') {
1717
propAsString: 'onChange',
1818
propAsValue: props.onChange,
1919
},
20-
'`components/forms/checkbox` is deprecated. `components/checkbox` should be used. When this path update is made `onChange` event parameters will change from `onChange(value, event, { value } to `onChange(event, { value }). Please update your event parameters when you change paths.` If you are using the CommonJS named import, `Checkbox` events will break at v1.0 and this warning will be present until then. Please review https://github.com/salesforce/design-system-react/releases when you upgrade.'
20+
'`components/forms/checkbox` is deprecated. `components/checkbox` should be used. When this path update is made `onChange` event parameters will change from `onChange(value, event, { value }) to `onChange(event, { value }). Please update your event parameters when you change paths.` If you are using the CommonJS named import, `Checkbox` events will break at v1.0 and this warning will be present until then. Please review https://github.com/salesforce/design-system-react/releases when you upgrade.'
2121
);
2222

2323
if (props.variant === 'toggle' && props.indeterminate === true) {

0 commit comments

Comments
 (0)