Skip to content

Commit b78f2f7

Browse files
committed
de-dupe REPO_FILTER_OPTIONS
1 parent 0e91795 commit b78f2f7

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

static/app/components/repositories/scmIntegrationTree/scmTreeFilters.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@ import {CompactSelect, type SelectOption} from '@sentry/scraps/compactSelect';
44
import {Input} from '@sentry/scraps/input';
55

66
import type {RepoFilter} from 'sentry/components/repositories/scmIntegrationTree/types';
7+
import {REPO_FILTER_OPTIONS} from 'sentry/components/repositories/scmIntegrationTree/useScmTreeFilters';
78
import {t} from 'sentry/locale';
89

9-
const REPO_FILTER_OPTIONS: Array<SelectOption<RepoFilter>> = [
10-
{value: 'all' as const, label: t('All repos')},
11-
{value: 'connected' as const, label: t('Connected Repos')},
12-
{value: 'not-connected' as const, label: t('Disconnected Repos')},
13-
];
14-
1510
interface Props {
1611
repoFilter: RepoFilter;
1712
searchTerm: string;

static/app/components/repositories/scmIntegrationTree/useScmTreeFilters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {type SelectOption} from '@sentry/scraps/compactSelect';
55
import type {RepoFilter} from 'sentry/components/repositories/scmIntegrationTree/types';
66
import {t} from 'sentry/locale';
77

8-
const REPO_FILTER_OPTIONS: Array<SelectOption<RepoFilter>> = [
8+
export const REPO_FILTER_OPTIONS: Array<SelectOption<RepoFilter>> = [
99
{value: 'all' as const, label: t('All repos')},
1010
{value: 'connected' as const, label: t('Connected Repos')},
1111
{value: 'not-connected' as const, label: t('Disconnected Repos')},

0 commit comments

Comments
 (0)