From 66ec5eb657818fdd8b7629df9e6f1cfc11b804ca Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 26 Nov 2024 14:23:48 -0800 Subject: [PATCH] fix(dashboards): Remove sentry/types user imports It is the first option in vscode imports for whatever reason --- static/app/components/modals/widgetViewerModal.tsx | 2 +- static/app/views/dashboards/detail.tsx | 2 +- static/app/views/dashboards/filtersBar.tsx | 2 +- static/app/views/dashboards/sortableWidget.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/app/components/modals/widgetViewerModal.tsx b/static/app/components/modals/widgetViewerModal.tsx index 6acfb43cbb623d..f343822c3a8797 100644 --- a/static/app/components/modals/widgetViewerModal.tsx +++ b/static/app/components/modals/widgetViewerModal.tsx @@ -3,7 +3,6 @@ import {components} from 'react-select'; import {css} from '@emotion/react'; import styled from '@emotion/styled'; import * as Sentry from '@sentry/react'; -import type {User} from '@sentry/types'; import {truncate} from '@sentry/utils'; import type {DataZoomComponentOption} from 'echarts'; import type {Location} from 'history'; @@ -32,6 +31,7 @@ import {space} from 'sentry/styles/space'; import type {PageFilters, SelectValue} from 'sentry/types/core'; import type {Series} from 'sentry/types/echarts'; import type {Organization} from 'sentry/types/organization'; +import type {User} from 'sentry/types/user'; import {defined} from 'sentry/utils'; import {trackAnalytics} from 'sentry/utils/analytics'; import {getUtcDateString} from 'sentry/utils/dates'; diff --git a/static/app/views/dashboards/detail.tsx b/static/app/views/dashboards/detail.tsx index ac677037544d52..6f3d049cdc0457 100644 --- a/static/app/views/dashboards/detail.tsx +++ b/static/app/views/dashboards/detail.tsx @@ -1,6 +1,5 @@ import {cloneElement, Component, Fragment, isValidElement} from 'react'; import styled from '@emotion/styled'; -import type {User} from '@sentry/types'; import isEqual from 'lodash/isEqual'; import isEqualWith from 'lodash/isEqualWith'; import omit from 'lodash/omit'; @@ -32,6 +31,7 @@ import type {PageFilters} from 'sentry/types/core'; import type {PlainRoute, RouteComponentProps} from 'sentry/types/legacyReactRouter'; import type {Organization, Team} from 'sentry/types/organization'; import type {Project} from 'sentry/types/project'; +import type {User} from 'sentry/types/user'; import {defined} from 'sentry/utils'; import {trackAnalytics} from 'sentry/utils/analytics'; import {browserHistory} from 'sentry/utils/browserHistory'; diff --git a/static/app/views/dashboards/filtersBar.tsx b/static/app/views/dashboards/filtersBar.tsx index a39233314b67dc..ab18bf062ff885 100644 --- a/static/app/views/dashboards/filtersBar.tsx +++ b/static/app/views/dashboards/filtersBar.tsx @@ -1,6 +1,5 @@ import {Fragment} from 'react'; import styled from '@emotion/styled'; -import type {User} from '@sentry/types'; import type {Location} from 'history'; import {Button} from 'sentry/components/button'; @@ -11,6 +10,7 @@ import PageFilterBar from 'sentry/components/organizations/pageFilterBar'; import {ProjectPageFilter} from 'sentry/components/organizations/projectPageFilter'; import {t} from 'sentry/locale'; import {space} from 'sentry/styles/space'; +import type {User} from 'sentry/types/user'; import {defined} from 'sentry/utils'; import {trackAnalytics} from 'sentry/utils/analytics'; import {ToggleOnDemand} from 'sentry/utils/performance/contexts/onDemandControl'; diff --git a/static/app/views/dashboards/sortableWidget.tsx b/static/app/views/dashboards/sortableWidget.tsx index edff3f377ca6e4..0c3a9080d786a5 100644 --- a/static/app/views/dashboards/sortableWidget.tsx +++ b/static/app/views/dashboards/sortableWidget.tsx @@ -1,9 +1,9 @@ import type {ComponentProps} from 'react'; import styled from '@emotion/styled'; -import type {User} from '@sentry/types'; import {LazyRender} from 'sentry/components/lazyRender'; import PanelAlert from 'sentry/components/panels/panelAlert'; +import type {User} from 'sentry/types/user'; import useOrganization from 'sentry/utils/useOrganization'; import {useUser} from 'sentry/utils/useUser'; import {useUserTeams} from 'sentry/utils/useUserTeams';