Skip to content
Snippets Groups Projects
Commit 35d48927 authored by Moritz Stückler's avatar Moritz Stückler :cowboy:
Browse files

fix: ts errors in select

parent 5f98a3bc
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ import Tag from './Tag';
const Option = ({ children, data, ...rest }: { children: any; data: any }) => {
return (
// @ts-expect-error: Not typed yet
<components.Option {...rest}>
<Tag color={data.value.color}>{children}</Tag>
</components.Option>
......@@ -16,6 +17,7 @@ const Select = <OptionType, isMulti extends boolean>(props: NamedProps<OptionTyp
control: (provided) => ({ ...provided, border: '0', borderRadius: '0.5em' }),
multiValue: (provided, state) => ({
...provided,
// @ts-expect-error: Not typed yet
backgroundColor: state?.data?.value?.color || 'grey',
borderRadius: '999px',
padding: '0 3px',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment