Remove unused ref (https://github.com/woocommerce/woocommerce-admin/pull/4859)
This commit is contained in:
parent
6bcf6510bd
commit
d4729a5578
|
@ -14,6 +14,7 @@
|
|||
- Add `<List />` and `<Link />` components to Storybook.
|
||||
- Add `<Pill />` component.
|
||||
- Add `key` prop to `<List />` component items.
|
||||
- Remove unused `ref` from `<DateRangeFilterPicker />`.
|
||||
|
||||
## Breaking Changes
|
||||
- Removed `SplitButton` because its not being used.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* External dependencies
|
||||
*/
|
||||
import { Component, createRef } from '@wordpress/element';
|
||||
import { Component } from '@wordpress/element';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { Dropdown } from '@wordpress/components';
|
||||
import PropTypes from 'prop-types';
|
||||
|
@ -22,8 +22,6 @@ class DateRangeFilterPicker extends Component {
|
|||
super( props );
|
||||
this.state = this.getResetState();
|
||||
|
||||
this.dropdownRef = createRef();
|
||||
|
||||
this.update = this.update.bind( this );
|
||||
this.onSelect = this.onSelect.bind( this );
|
||||
this.isValidSelection = this.isValidSelection.bind( this );
|
||||
|
@ -130,7 +128,6 @@ class DateRangeFilterPicker extends Component {
|
|||
{ __( 'Date Range', 'woocommerce-admin' ) }:
|
||||
</span>
|
||||
<Dropdown
|
||||
ref={ this.dropdownRef }
|
||||
contentClassName="woocommerce-filters-date__content"
|
||||
position="bottom"
|
||||
expandOnMobile
|
||||
|
|
Loading…
Reference in New Issue