diff --git a/apps/portal/src/components/shared/CompaniesTypeahead.tsx b/apps/portal/src/components/shared/CompaniesTypeahead.tsx index 1857c361..3732751c 100644 --- a/apps/portal/src/components/shared/CompaniesTypeahead.tsx +++ b/apps/portal/src/components/shared/CompaniesTypeahead.tsx @@ -1,9 +1,11 @@ +import type { ComponentProps } from 'react'; import { useState } from 'react'; import { Typeahead } from '@tih/ui'; -import type { Props as TypeaheadProps } from '@tih/ui/src/Typeahead/Typeahead'; import { trpc } from '~/utils/trpc'; +type TypeaheadProps = ComponentProps; + type Props = Omit< TypeaheadProps, 'noResultsMessage' | 'onQueryChange' | 'options' | 'query' diff --git a/packages/ui/src/Typeahead/Typeahead.tsx b/packages/ui/src/Typeahead/Typeahead.tsx index 7b840873..53bce5a0 100644 --- a/packages/ui/src/Typeahead/Typeahead.tsx +++ b/packages/ui/src/Typeahead/Typeahead.tsx @@ -22,7 +22,7 @@ type Attributes = Pick< | 'required' >; -export type Props = Readonly<{ +type Props = Readonly<{ isLabelHidden?: boolean; label: string; noResultsMessage?: string;