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 41cd264d8e227..12df68feeed7b 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 05316081c1eb2..6423698e467bf 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 5566f56e4bddf..76c78c55a7cd8 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 ec05f4dccfd0f..e4f53ee0c47b3 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 e42dfa681c1a6..7f70ba9eba005 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 f80ddc90f36c5..be200243221be 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';