Update enums to be all caps (#12372)
- Make custom domain public (remove from lab) - Use ALL_CAPS definition for enums
This commit is contained in:
@ -4,11 +4,11 @@ import { FeatureFlagKey } from '~/generated/graphql';
|
||||
const getFeatureKey = (databaseKey: string): FeatureFlagKey | null => {
|
||||
switch (databaseKey) {
|
||||
case 'airtable':
|
||||
return FeatureFlagKey.IsAirtableIntegrationEnabled;
|
||||
return FeatureFlagKey.IS_AIRTABLE_INTEGRATION_ENABLED;
|
||||
case 'postgresql':
|
||||
return FeatureFlagKey.IsPostgreSQLIntegrationEnabled;
|
||||
return FeatureFlagKey.IS_POSTGRESQL_INTEGRATION_ENABLED;
|
||||
case 'stripe':
|
||||
return FeatureFlagKey.IsStripeIntegrationEnabled;
|
||||
return FeatureFlagKey.IS_STRIPE_INTEGRATION_ENABLED;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -10,21 +10,21 @@ import { FeatureFlagKey } from '~/generated/graphql';
|
||||
export const useSettingsIntegrationCategories =
|
||||
(): SettingsIntegrationCategory[] => {
|
||||
const isAirtableIntegrationEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IsAirtableIntegrationEnabled,
|
||||
FeatureFlagKey.IS_AIRTABLE_INTEGRATION_ENABLED,
|
||||
);
|
||||
const isAirtableIntegrationActive = !!MOCK_REMOTE_DATABASES.find(
|
||||
({ name }) => name === 'airtable',
|
||||
)?.isActive;
|
||||
|
||||
const isPostgresqlIntegrationEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IsPostgreSQLIntegrationEnabled,
|
||||
FeatureFlagKey.IS_POSTGRESQL_INTEGRATION_ENABLED,
|
||||
);
|
||||
const isPostgresqlIntegrationActive = !!MOCK_REMOTE_DATABASES.find(
|
||||
({ name }) => name === 'postgresql',
|
||||
)?.isActive;
|
||||
|
||||
const isStripeIntegrationEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IsStripeIntegrationEnabled,
|
||||
FeatureFlagKey.IS_STRIPE_INTEGRATION_ENABLED,
|
||||
);
|
||||
const isStripeIntegrationActive = !!MOCK_REMOTE_DATABASES.find(
|
||||
({ name }) => name === 'stripe',
|
||||
|
||||
Reference in New Issue
Block a user