From a39025fc6bec6a6591458670e32394ad8d77544b Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Fri, 28 Feb 2025 13:53:02 -0500 Subject: [PATCH] refactor imports --- static/app/components/releases/releasesDrawer.tsx | 15 +++------------ .../components/releases/releasesDrawerTable.tsx | 5 ++--- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/static/app/components/releases/releasesDrawer.tsx b/static/app/components/releases/releasesDrawer.tsx index 705ae9c916e812..d92077f8bb78e7 100644 --- a/static/app/components/releases/releasesDrawer.tsx +++ b/static/app/components/releases/releasesDrawer.tsx @@ -1,6 +1,7 @@ import {Fragment, type ReactElement} from 'react'; import styled from '@emotion/styled'; +import {DateTime} from 'sentry/components/dateTime'; import { EventDrawerBody, EventDrawerContainer, @@ -9,24 +10,14 @@ import { Header, NavigationCrumbs, } from 'sentry/components/events/eventDrawer'; +import {ReleaseDrawerTable} from 'sentry/components/releases/releasesDrawerTable'; import {t, tn} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import type {Release} from 'sentry/views/dashboards/widgets/common/types'; +import type {Bucket} from 'sentry/views/dashboards/widgets/timeSeriesWidget/releaseBubbles/types'; import type {TimeSeriesWidgetVisualizationProps} from 'sentry/views/dashboards/widgets/timeSeriesWidget/timeSeriesWidgetVisualization'; import {Widget} from 'sentry/views/dashboards/widgets/widget/widget'; -import {DateTime} from '../dateTime'; - -import {ReleaseDrawerTable} from './releasesDrawerTable'; - -type Bucket = [ - start: number, - placeholder: number, - end: number, - numReleases: number, - releases: Release[], -]; - interface ReleasesDrawerProps { /** * This is a list of the release buckets used by eCharts to draw the release bubbles. diff --git a/static/app/components/releases/releasesDrawerTable.tsx b/static/app/components/releases/releasesDrawerTable.tsx index 9f3946e20b5cfa..240c11e90dbb3a 100644 --- a/static/app/components/releases/releasesDrawerTable.tsx +++ b/static/app/components/releases/releasesDrawerTable.tsx @@ -5,9 +5,11 @@ import Count from 'sentry/components/count'; import GlobalSelectionLink from 'sentry/components/globalSelectionLink'; import type {GridColumnHeader, GridColumnOrder} from 'sentry/components/gridEditable'; import GridEditable from 'sentry/components/gridEditable'; +import Pagination from 'sentry/components/pagination'; import renderSortableHeaderCell from 'sentry/components/replays/renderSortableHeaderCell'; import useQueryBasedColumnResize from 'sentry/components/replays/useQueryBasedColumnResize'; import useQueryBasedSorting from 'sentry/components/replays/useQueryBasedSorting'; +import TextOverflow from 'sentry/components/textOverflow'; import {Tooltip} from 'sentry/components/tooltip'; import {t} from 'sentry/locale'; import {space} from 'sentry/styles/space'; @@ -19,9 +21,6 @@ import useOrganization from 'sentry/utils/useOrganization'; import useOrganizationReleases from 'sentry/views/insights/sessions/queries/useOrganizationReleases'; import {getReleaseNewIssuesUrl} from 'sentry/views/releases/utils'; -import Pagination from '../pagination'; -import TextOverflow from '../textOverflow'; - type ReleaseHealthItem = { adoption_stage: string; crash_free_sessions: number;