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,14 +17,19 @@
* under the License.
*/
import React, { useState, ReactNode } from 'react';
import { styled, useTheme, t } from '@superset-ui/core';
import {
ErrorLevel,
ErrorSource,
styled,
useTheme,
t,
} from '@superset-ui/core';
import { noOp } from 'src/utils/common';
import Modal from 'src/components/Modal';
import Button from 'src/components/Button';
import { isCurrentUserBot } from 'src/utils/isBot';
import Icons from 'src/components/Icons';
import { ErrorLevel, ErrorSource } from './types';
import CopyToClipboard from '../CopyToClipboard';
const ErrorAlertDiv = styled.div<{ level: ErrorLevel }>`