From 6b27ebf86bbf76119cc47872fd93086ae08d676b Mon Sep 17 00:00:00 2001 From: Germain Date: Wed, 27 Sep 2023 10:12:11 +0100 Subject: [PATCH] Remove undesired disabled prop --- src/components/Search/Search.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Search/Search.tsx b/src/components/Search/Search.tsx index 2dd9820b..e850bd3f 100644 --- a/src/components/Search/Search.tsx +++ b/src/components/Search/Search.tsx @@ -28,7 +28,7 @@ type SearchProps = { className?: string; /** * The input placeholder. - * @default Search + * @default "Search…" */ placeholder?: string; /** @@ -39,10 +39,6 @@ type SearchProps = { * Event handler called when the search changes. */ onChange?: (e: React.ChangeEvent) => void; - /** - * The input disabled state - */ - disabled?: boolean; }; /** @@ -53,7 +49,6 @@ export const Search = ({ onChange, // TODO: i18n needs to be setup placeholder = "Search…", - disabled, name, }: SearchProps) => { const classes = classnames(styles.search, className); @@ -69,7 +64,6 @@ export const Search = ({ placeholder={placeholder} onChange={onChange} className={styles.input} - disabled={disabled} />