Skip to content

Commit e841602

Browse files
committed
refactor: changed a prop name
1 parent 868a593 commit e841602

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/package/checkbox/autocomplete-checkbox.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const AutocompleteCheckboxInner = <T extends Record<string, any>>(
3232
textFieldProps = {},
3333
checkboxProps = {},
3434
filterButtonProps = {},
35-
clearButtonProps = {},
35+
cleanButtonProps = {},
3636
header,
3737
options,
3838
sortAscending,
@@ -279,11 +279,11 @@ const AutocompleteCheckboxInner = <T extends Record<string, any>>(
279279
mr={0.5}
280280
>
281281
<Button
282-
{...clearButtonProps}
282+
{...cleanButtonProps}
283283
onClick={handleClearCheckBoxesSelection}
284-
variant={clearButtonProps?.variant || "text"}
285-
color={clearButtonProps?.color || "warning"}
286-
size={clearButtonProps?.size || "small"}
284+
variant={cleanButtonProps?.variant || "text"}
285+
color={cleanButtonProps?.color || "warning"}
286+
size={cleanButtonProps?.size || "small"}
287287
disabled={filters.length === 0}
288288
>
289289
{cleanButtonText}

src/package/types/autocomplete-checkbox-props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export type TAutocompleteCheckboxProps<T extends Record<string, any>> = {
3838
placeHolder?: string;
3939
header: MRT_Header<T>;
4040
filterButtonProps?: ButtonProps;
41-
clearButtonProps?: ButtonProps;
41+
cleanButtonProps?: ButtonProps;
4242
filterButtonText?: string;
4343
cleanButtonText?: string;
4444
options: (string | number | boolean | null | undefined)[];

0 commit comments

Comments
 (0)