diff --git a/client/web/src/enterprise/batches/settings/AddCredentialModal.tsx b/client/web/src/enterprise/batches/settings/AddCredentialModal.tsx index 2c6d1872ef7..2ad575835c8 100644 --- a/client/web/src/enterprise/batches/settings/AddCredentialModal.tsx +++ b/client/web/src/enterprise/batches/settings/AddCredentialModal.tsx @@ -7,7 +7,6 @@ import type { AuthenticatedUser } from '@sourcegraph/shared/src/auth' import { Button, Modal, Link, Code, Label, Text, Input, ErrorAlert, Form, Select } from '@sourcegraph/wildcard' import { LoaderButton } from '../../../components/LoaderButton' -import { useFeatureFlag } from '../../../featureFlags/useFeatureFlag' import { ExternalServiceKind, GitHubAppKind, type UserAreaUserFields } from '../../../graphql-operations' import { useCreateBatchChangesCredential } from './backend' @@ -105,7 +104,6 @@ export const AddCredentialModal: FC( AuthenticationStrategy.PERSONAL_ACCESS_TOKEN ) - const [isGithubAppIntegrationEnabled] = useFeatureFlag('batches-github-app-integration') const onChangeCredential = useCallback>(event => { setCredential(event.target.value) @@ -156,7 +154,7 @@ export const AddCredentialModal: FC - {isGitHubKind && isGithubAppIntegrationEnabled && isTokenSection && ( + {isExternalServiceKindGitHub && isTokenSection && (