From 809061df89671006ef04b3a252657f7d3a5919cd Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Wed, 19 Oct 2022 18:45:04 +0800 Subject: [PATCH] [ui][typeahead] revert export Props --- apps/portal/src/components/shared/CompaniesTypeahead.tsx | 4 +++- packages/ui/src/Typeahead/Typeahead.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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;