[ui][typeahead] revert export Props

pull/395/head
Jeff Sieu 3 years ago
parent a7934b335a
commit 809061df89

@ -1,9 +1,11 @@
import type { ComponentProps } from 'react';
import { useState } from 'react'; import { useState } from 'react';
import { Typeahead } from '@tih/ui'; import { Typeahead } from '@tih/ui';
import type { Props as TypeaheadProps } from '@tih/ui/src/Typeahead/Typeahead';
import { trpc } from '~/utils/trpc'; import { trpc } from '~/utils/trpc';
type TypeaheadProps = ComponentProps<typeof Typeahead>;
type Props = Omit< type Props = Omit<
TypeaheadProps, TypeaheadProps,
'noResultsMessage' | 'onQueryChange' | 'options' | 'query' 'noResultsMessage' | 'onQueryChange' | 'options' | 'query'

@ -22,7 +22,7 @@ type Attributes = Pick<
| 'required' | 'required'
>; >;
export type Props = Readonly<{ type Props = Readonly<{
isLabelHidden?: boolean; isLabelHidden?: boolean;
label: string; label: string;
noResultsMessage?: string; noResultsMessage?: string;

Loading…
Cancel
Save