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

Merge branch 'fix/ts-errors-in-select' into 'main'

fix: ts errors in select

See merge request software/fabcity-map/fabcity-map-frontend!22
parents 8598b015 35d48927
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