Skip to content

Commit

Permalink
widens RefCallback usage to just Ref per review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Apr 8, 2020
1 parent 09ab531 commit 416f3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/date_picker/date_picker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, MouseEventHandler, RefCallback } from 'react';
import React, { Component, MouseEventHandler, Ref } from 'react';
import classNames from 'classnames';

import { Moment } from 'moment'; // eslint-disable-line import/named
Expand Down Expand Up @@ -34,7 +34,7 @@ interface EuiExtendedDatePickerProps extends ReactDatePickerProps {
/**
* ref for the ReactDatePicker instance
*/
inputRef: RefCallback<Component<ReactDatePickerProps, any, any>>;
inputRef: Ref<Component<ReactDatePickerProps, any, any>>;

/**
* Provides styling to the input when invalid
Expand Down

0 comments on commit 416f3a3

Please sign in to comment.