From cf5f7256203edc14819a1ed3408a46427e8f3742 Mon Sep 17 00:00:00 2001 From: Aayush Seth Date: Wed, 5 Nov 2025 09:26:21 -0800 Subject: [PATCH] resolve --- .../attributeBreakdowns/content.tsx | 6 ++-- .../attributeBreakdowns/sortingToggle.tsx | 34 ------------------- 2 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 static/app/views/explore/components/attributeBreakdowns/sortingToggle.tsx diff --git a/static/app/views/explore/components/attributeBreakdowns/content.tsx b/static/app/views/explore/components/attributeBreakdowns/content.tsx index ec83853a344588..e46b09c8f70962 100644 --- a/static/app/views/explore/components/attributeBreakdowns/content.tsx +++ b/static/app/views/explore/components/attributeBreakdowns/content.tsx @@ -28,7 +28,8 @@ import {prettifyAggregation} from 'sentry/views/explore/utils'; import {Chart} from './chart'; import {useChartSelection} from './chartSelectionContext'; -import {SortingToggle, type SortingMethod} from './sortingToggle'; + +type SortingMethod = 'rrr'; const CHARTS_COLUMN_COUNT = 3; const CHARTS_PER_PAGE = CHARTS_COLUMN_COUNT * 4; @@ -96,7 +97,7 @@ function ContentImpl({ chartInfo, }); const [searchQuery, setSearchQuery] = useState(''); - const [sortingMethod, setSortingMethod] = useState('rrr'); + const sortingMethod: SortingMethod = 'rrr'; const [page, setPage] = useState(0); const theme = useTheme(); @@ -192,7 +193,6 @@ function ContentImpl({ query={debouncedSearchQuery} size="sm" /> - {selectionHint && ( diff --git a/static/app/views/explore/components/attributeBreakdowns/sortingToggle.tsx b/static/app/views/explore/components/attributeBreakdowns/sortingToggle.tsx deleted file mode 100644 index faa8fd19663a7f..00000000000000 --- a/static/app/views/explore/components/attributeBreakdowns/sortingToggle.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import {SegmentedControl} from 'sentry/components/core/segmentedControl'; -import {t} from 'sentry/locale'; - -type SortingMethod = 'rrr' | 'rrf'; - -interface SortingToggleProps { - onChange: (value: SortingMethod) => void; - value: SortingMethod; -} - -export function SortingToggle({value, onChange}: SortingToggleProps) { - return ( - - - {t('RRR')} - - - {t('RRF')} - - - ); -} - -export type {SortingMethod};