Skip to content

Commit

Permalink
fix: 🐛 lint BRSelectSearchable
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Jan 15, 2025
1 parent 4855e3f commit 30bebac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions components/brickroom/BrSelectSearchable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { SelectOptions } from "components/brickroom/utils/BrSelectUtils";
import PFieldInfo, { PFieldInfoProps } from "components/polaris/PFieldInfo";
import { forwardRef } from "react";
import Select, { Props } from "react-select";
import Select, { CSSObjectWithLabel, Props } from "react-select";
import CreatableSelect from "react-select/creatable";

//
Expand Down Expand Up @@ -60,7 +60,7 @@ const BrSelectSearchable = forwardRef<any, BrSelectSearchableProps>((props, ref)
ref={ref}
id={id}
menuPortalTarget={document.body}
styles={{ menuPortal: base => ({ ...base, zIndex: 9999 }) }}
styles={{ menuPortal: (base: CSSObjectWithLabel) => ({ ...base, zIndex: 9999 }) }}
/>
)}
{creatable && (
Expand All @@ -69,7 +69,7 @@ const BrSelectSearchable = forwardRef<any, BrSelectSearchableProps>((props, ref)
{...props}
ref={ref}
menuPortalTarget={document.body}
styles={{ menuPortal: base => ({ ...base, zIndex: 9999 }) }}
styles={{ menuPortal: (base: CSSObjectWithLabel) => ({ ...base, zIndex: 9999 }) }}
id={id}
/>
)}
Expand Down
6 changes: 3 additions & 3 deletions components/brickroom/BrSelectSearchableAsync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import PFieldInfo, { PFieldInfoProps } from "components/polaris/PFieldInfo";
import { forwardRef } from "react";
import { GroupBase } from "react-select";
import { CSSObjectWithLabel, GroupBase } from "react-select";
import AsyncSelect, { AsyncProps } from "react-select/async";
import AsyncCreatableSelect from "react-select/async-creatable";

Expand All @@ -37,14 +37,14 @@ const BrSelectSearchableAsync = forwardRef<any, BrSelectSearchableAsyncProps>((p
<AsyncSelect
{...props}
ref={ref}
styles={{ menuPortal: base => ({ ...base, zIndex: 9999 }) }}
styles={{ menuPortal: (base: CSSObjectWithLabel) => ({ ...base, zIndex: 9999 }) }}
menuPortalTarget={document.body}
/>
) : (
<AsyncCreatableSelect
{...props}
ref={ref}
styles={{ menuPortal: base => ({ ...base, zIndex: 9999 }) }}
styles={{ menuPortal: (base: CSSObjectWithLabel) => ({ ...base, zIndex: 9999 }) }}
menuPortalTarget={document.body}
/>
)}
Expand Down

0 comments on commit 30bebac

Please sign in to comment.