Scheduling infrastructure for absolutely everyone.
fix: align feature opt-in toggle labels with enable/disable wording (#27425)
Eunjae Leec1f52c219d16
diff --git a/apps/web/modules/feature-opt-in/hooks/useOrganizationFeatureOptIn.ts b/apps/web/modules/feature-opt-in/hooks/useOrganizationFeatureOptIn.tsindex fd7a916c11a..86222e59b32 100644--- a/apps/web/modules/feature-opt-in/hooks/useOrganizationFeatureOptIn.ts+++ b/apps/web/modules/feature-opt-in/hooks/useOrganizationFeatureOptIn.ts@@ -86,7 +86,7 @@ export function useOrganizationFeatureOptIn(): UseFeatureOptInResult {setAutoOptIn,isStateMutationPending: setStateMutation.isPending,isAutoOptInMutationPending: setAutoOptInMutation.isPending,- toggleLabels: { enabled: t("allow"), disabled: t("block"), inherit: t("let_users_decide") },+ toggleLabels: { enabled: t("enable"), disabled: t("disable"), inherit: t("let_users_decide") },autoOptInDescription: t("auto_opt_in_experimental_description_org"),getBlockedWarning: getOrgBlockedWarning,isBlockedByHigherLevel: isOrgBlockedByHigherLevel,diff --git a/apps/web/modules/feature-opt-in/hooks/useTeamFeatureOptIn.ts b/apps/web/modules/feature-opt-in/hooks/useTeamFeatureOptIn.tsindex 548fc89c339..146eff4aafc 100644--- a/apps/web/modules/feature-opt-in/hooks/useTeamFeatureOptIn.ts+++ b/apps/web/modules/feature-opt-in/hooks/useTeamFeatureOptIn.ts@@ -120,7 +120,7 @@ export function useTeamFeatureOptIn(teamId: number): UseFeatureOptInResult {setAutoOptIn,isStateMutationPending: setStateMutation.isPending,isAutoOptInMutationPending: setAutoOptInMutation.isPending,- toggleLabels: { enabled: t("allow"), disabled: t("block"), inherit: t("let_users_decide") },+ toggleLabels: { enabled: t("enable"), disabled: t("disable"), inherit: t("let_users_decide") },autoOptInDescription: t("auto_opt_in_experimental_description_team"),getBlockedWarning,isBlockedByHigherLevel,