From 67c7897bf5cde75c57f8196e26051222917714be Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Mon, 26 Aug 2024 08:58:54 -0400 Subject: [PATCH] ref(js): Extract browserHistory again (#76473) --- .../resources/components/tables/resourceSummaryTable.tsx | 2 +- .../database/components/tables/queryTransactionsTable.tsx | 2 +- .../newTraceDetails/traceRenderers/virtualizedViewManager.tsx | 2 +- .../newTraceDetails/traceTypeWarnings/errorsOnlyWarnings.tsx | 2 +- .../transactionSummary/transactionSpans/spanMetricsTable.tsx | 2 +- .../transactionSpans/spanSummary/spanSummaryTable.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/app/views/insights/browser/resources/components/tables/resourceSummaryTable.tsx b/static/app/views/insights/browser/resources/components/tables/resourceSummaryTable.tsx index 41cd264d8e2278..12df68feeed7b9 100644 --- a/static/app/views/insights/browser/resources/components/tables/resourceSummaryTable.tsx +++ b/static/app/views/insights/browser/resources/components/tables/resourceSummaryTable.tsx @@ -1,5 +1,4 @@ import {Fragment} from 'react'; -import {browserHistory} from 'react-router'; import styled from '@emotion/styled'; import type {GridColumnHeader, GridColumnOrder} from 'sentry/components/gridEditable'; @@ -9,6 +8,7 @@ import type {CursorHandler} from 'sentry/components/pagination'; import Pagination from 'sentry/components/pagination'; import {t} from 'sentry/locale'; import {space} from 'sentry/styles/space'; +import {browserHistory} from 'sentry/utils/browserHistory'; import {decodeScalar} from 'sentry/utils/queryString'; import {useLocation} from 'sentry/utils/useLocation'; import {useParams} from 'sentry/utils/useParams'; diff --git a/static/app/views/insights/database/components/tables/queryTransactionsTable.tsx b/static/app/views/insights/database/components/tables/queryTransactionsTable.tsx index 05316081c1eb2d..6423698e467bf8 100644 --- a/static/app/views/insights/database/components/tables/queryTransactionsTable.tsx +++ b/static/app/views/insights/database/components/tables/queryTransactionsTable.tsx @@ -1,5 +1,4 @@ import {Fragment} from 'react'; -import {browserHistory} from 'react-router'; import type {Location} from 'history'; import * as qs from 'query-string'; @@ -10,6 +9,7 @@ import type {CursorHandler} from 'sentry/components/pagination'; import Pagination from 'sentry/components/pagination'; import {t} from 'sentry/locale'; import type {Organization} from 'sentry/types/organization'; +import {browserHistory} from 'sentry/utils/browserHistory'; import type {EventsMetaType} from 'sentry/utils/discover/eventView'; import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers'; import type {Sort} from 'sentry/utils/discover/fields'; diff --git a/static/app/views/performance/newTraceDetails/traceRenderers/virtualizedViewManager.tsx b/static/app/views/performance/newTraceDetails/traceRenderers/virtualizedViewManager.tsx index 5566f56e4bddf8..76c78c55a7cd88 100644 --- a/static/app/views/performance/newTraceDetails/traceRenderers/virtualizedViewManager.tsx +++ b/static/app/views/performance/newTraceDetails/traceRenderers/virtualizedViewManager.tsx @@ -1,7 +1,7 @@ -import {browserHistory} from 'react-router'; import {mat3, vec2} from 'gl-matrix'; import * as qs from 'query-string'; +import {browserHistory} from 'sentry/utils/browserHistory'; import getDuration from 'sentry/utils/duration/getDuration'; import clamp from 'sentry/utils/number/clamp'; import { diff --git a/static/app/views/performance/newTraceDetails/traceTypeWarnings/errorsOnlyWarnings.tsx b/static/app/views/performance/newTraceDetails/traceTypeWarnings/errorsOnlyWarnings.tsx index ec05f4dccfd0f6..e4f53ee0c47b3f 100644 --- a/static/app/views/performance/newTraceDetails/traceTypeWarnings/errorsOnlyWarnings.tsx +++ b/static/app/views/performance/newTraceDetails/traceTypeWarnings/errorsOnlyWarnings.tsx @@ -1,5 +1,4 @@ import {useEffect, useMemo} from 'react'; -import {browserHistory} from 'react-router'; import styled from '@emotion/styled'; import connectDotsImg from 'sentry-images/spot/performance-connect-dots.svg'; @@ -13,6 +12,7 @@ import {t, tct} from 'sentry/locale'; import SidebarPanelStore from 'sentry/stores/sidebarPanelStore'; import type {Organization} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; +import {browserHistory} from 'sentry/utils/browserHistory'; import {useApiQuery} from 'sentry/utils/queryClient'; import {useLocation} from 'sentry/utils/useLocation'; import useProjects from 'sentry/utils/useProjects'; diff --git a/static/app/views/performance/transactionSummary/transactionSpans/spanMetricsTable.tsx b/static/app/views/performance/transactionSummary/transactionSpans/spanMetricsTable.tsx index e42dfa681c1a65..7f70ba9eba0055 100644 --- a/static/app/views/performance/transactionSummary/transactionSpans/spanMetricsTable.tsx +++ b/static/app/views/performance/transactionSummary/transactionSpans/spanMetricsTable.tsx @@ -1,5 +1,4 @@ import {Fragment} from 'react'; -import {browserHistory} from 'react-router'; import type {Location} from 'history'; import type {GridColumnHeader} from 'sentry/components/gridEditable'; @@ -9,6 +8,7 @@ import Pagination, {type CursorHandler} from 'sentry/components/pagination'; import {t} from 'sentry/locale'; import type {Organization} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; +import {browserHistory} from 'sentry/utils/browserHistory'; import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers'; import type {ColumnType} from 'sentry/utils/discover/fields'; import {Container as TableCellContainer} from 'sentry/utils/discover/styles'; diff --git a/static/app/views/performance/transactionSummary/transactionSpans/spanSummary/spanSummaryTable.tsx b/static/app/views/performance/transactionSummary/transactionSpans/spanSummary/spanSummaryTable.tsx index f80ddc90f36c50..be200243221be8 100644 --- a/static/app/views/performance/transactionSummary/transactionSpans/spanSummary/spanSummaryTable.tsx +++ b/static/app/views/performance/transactionSummary/transactionSpans/spanSummary/spanSummaryTable.tsx @@ -1,5 +1,4 @@ import {Fragment, useCallback, useMemo} from 'react'; -import {browserHistory} from 'react-router'; import styled from '@emotion/styled'; import type {Location} from 'history'; @@ -16,6 +15,7 @@ import {space} from 'sentry/styles/space'; import type {Organization} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; import {defined} from 'sentry/utils'; +import {browserHistory} from 'sentry/utils/browserHistory'; import EventView, {type MetaType} from 'sentry/utils/discover/eventView'; import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers'; import type {ColumnType} from 'sentry/utils/discover/fields';