Skip to content

Commit cac8773

Browse files
committed
refactor(types): 🏷️ update prop value types to include null value
1 parent df467cd commit cac8773

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

src/components/checkbox/Checkbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export interface CheckboxProps extends TouchableProps {
4242
/**
4343
* Label for the Checkbox.
4444
*/
45-
label: string;
45+
label: string | null;
4646
/**
4747
* Description for the Checkbox.
4848
*/
49-
description: string;
49+
description: string | null;
5050
/**
5151
* Checkbox State
5252
* @default false

src/components/divider/Divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface DividerProps {
99
/**
1010
* Label name
1111
*/
12-
label: string;
12+
label: string | null;
1313
/**
1414
* The orientation of the divider
1515
* @default horizontal

src/components/meter/Meter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ export interface MeterProps {
6565
/**
6666
* Label for the Meter
6767
*/
68-
label: string;
68+
label: string | null;
6969
/**
7070
* Hint for the Meter
7171
*/
72-
hint: string;
72+
hint: string | null;
7373
}
7474

7575
const RNMeter: React.FC<Partial<MeterProps>> = forwardRef<

src/components/progress/ProgressBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface ProgressProps extends BoxProps {
4242
/**
4343
* Label for the Meter
4444
*/
45-
label: string;
45+
label: string | null;
4646
/**
4747
* Hint for the Meter
4848
*/

src/components/radio/Radio.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export interface RadioProps extends TouchableProps {
1919
/**
2020
* Radio Label
2121
*/
22-
label: string;
22+
label: string | null;
2323
/**
2424
* Radio Description
2525
*/
26-
description: string;
26+
description: string | null;
2727
/**
2828
* Radio State
2929
*/

src/components/select/SelectOption.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { SelectSizes } from "./Select";
1515

1616
export interface SelectOptionProps {
1717
disabled?: boolean;
18-
label: string;
18+
label: string | null;
1919
description?: string;
2020
value: string;
2121
size: SelectSizes;

src/components/switch/Switch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ export interface SwitchProps extends BoxProps {
7979
/**
8080
* The Label of the switch component.
8181
*/
82-
label: string;
82+
label: string | null;
8383
/**
8484
* The Description of the switch component.
8585
*/
86-
description: string;
86+
description: string | null;
8787
}
8888

8989
const SPRING_CONFIG = {

0 commit comments

Comments
 (0)