refactor: Move fetchTimeRange to core package (#27852)

This commit is contained in:
Kamil Gabryjelski
2024-04-03 18:34:23 +02:00
committed by GitHub
parent 30bc8f06dc
commit a498d6d10f
72 changed files with 623 additions and 430 deletions

View File

@@ -17,13 +17,12 @@
* under the License.
*/
import React, { useEffect, useState } from 'react';
import { t, SupersetClient } from '@superset-ui/core';
import { t, SupersetClient, getClientErrorObject } from '@superset-ui/core';
import ControlHeader from 'src/explore/components/ControlHeader';
import { Select } from 'src/components';
import { SelectOptionsType, SelectProps } from 'src/components/Select/types';
import { SelectValue, LabeledValue } from 'antd/lib/select';
import withToasts from 'src/components/MessageToasts/withToasts';
import { getClientErrorObject } from 'src/utils/getClientErrorObject';
type SelectAsyncProps = Omit<SelectProps, 'options' | 'ariaLabel' | 'onChange'>;