Skip to content

Commit

Permalink
oops, this one too
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash committed Dec 21, 2023
1 parent ac3e762 commit d339008
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ With this current situation, there's not too much we can do to make everyone hap

Currently, the recommended way to use Stripes components in react-final-form without sacrificing typings is via the render prop or as a child:

```tsx
```jsx
import { Field } from 'react-final-form';
import { TextField } from '@folio/stripes/components';

Expand Down
11 changes: 6 additions & 5 deletions components/lib/Timepicker/Timepicker.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import Popper from 'popper.js';
import { AriaAttributes, ComponentType, ReactNode, RefObject } from 'react';
import { FieldRenderProps } from 'react-final-form';
import { IntlShape } from 'react-intl';

export interface TimepickerProps
extends AriaAttributes,
FieldRenderProps<string> {
export interface TimepickerProps extends AriaAttributes {
/** If the field should auto-focus on mount */
autoFocus?: boolean;
/** Disables the input field */
Expand Down Expand Up @@ -36,7 +33,7 @@ export interface TimepickerProps
value: string | undefined,
timezone: string,
timeFormat: string,
intl: IntlShape
intl: IntlShape,
) => string;
/** Where the overlay should be placed in relation to the field */
placement?: Popper.Placement;
Expand All @@ -54,6 +51,10 @@ export interface TimepickerProps
usePortal?: boolean;
/** The field's value */
value?: string;

// TODO: reference react-final-form FieldRenderProps<string>
input?: any;
meta?: any;
}

/**
Expand Down

0 comments on commit d339008

Please sign in to comment.