Skip to content

Commit bce3d28

Browse files
fix: make pickerProps & popperOptions properties optional
1 parent ca0e51c commit bce3d28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Emojis/EmojiPicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ export type EmojiPickerProps = {
2323
* Untyped [properties](https://github.com/missive/emoji-mart/tree/v5.5.2#options--props) to be
2424
* passed to the [emoji-mart `Picker`](https://github.com/missive/emoji-mart/tree/v5.5.2#-picker) component
2525
*/
26-
pickerProps?: { theme: 'auto' | 'light' | 'dark' } & Record<string, unknown>;
26+
pickerProps?: Partial<{ theme: 'auto' | 'light' | 'dark' } & Record<string, unknown>>;
2727
/**
2828
* [React Popper options](https://popper.js.org/docs/v2/constructors/#options) to be
2929
* passed to the [react-popper `usePopper`](https://popper.js.org/react-popper/v2/hook/) hook
3030
*/
31-
popperOptions?: Options;
31+
popperOptions?: Partial<Options>;
3232
};
3333

3434
const classNames: Record<ThemeVersion, EmojiPickerProps> = {

0 commit comments

Comments
 (0)