ENCOA-4: Added the ability to filter by Creator on the Code List

This commit is contained in:
Tiago Ribeiro
2024-04-11 11:23:13 +01:00
parent 8663fe13bd
commit 4ecb21e0ae
2 changed files with 52 additions and 12 deletions

View File

@@ -17,9 +17,10 @@ interface Props {
onChange: (value: Option | null) => void;
isClearable?: boolean;
styles?: StylesConfig<Option, boolean, GroupBase<Option>>;
className?: string;
}
export default function Select({value, defaultValue, options, placeholder, disabled, onChange, styles, isClearable}: Props) {
export default function Select({value, defaultValue, options, placeholder, disabled, onChange, styles, isClearable, className}: Props) {
const [target, setTarget] = useState<HTMLElement>();
useEffect(() => {
@@ -34,6 +35,7 @@ export default function Select({value, defaultValue, options, placeholder, disab
: clsx(
"placeholder:text-mti-gray-cool border-mti-gray-platinum w-full rounded-full border bg-white px-4 py-4 text-sm font-normal focus:outline-none",
disabled && "!bg-mti-gray-platinum/40 !text-mti-gray-dim cursor-not-allowed",
className,
)
}
options={options}