@thecb/components 10.4.7-beta.0 → 10.4.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.4.7-beta.0",
3
+ "version": "10.4.7-beta.1",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -7,12 +7,11 @@ export const toggleSwitchDefault = () => {
7
7
  const [isOn, onToggle] = useState(false);
8
8
 
9
9
  const disabled = boolean("disabled", false, "props");
10
- const label = text(label, "Toggle Switch Label", "props");
11
10
  return (
12
11
  <Fragment>
13
12
  <ToggleSwitch
14
13
  name="toggle-switch"
15
- label={label}
14
+ label={text("label", "Toggle Switch Label", "props")}
16
15
  isOn={isOn}
17
16
  onToggle={() => onToggle(!isOn)}
18
17
  disabled={disabled}