help-beta: Use CORPORATE_ENABLED instead of SHOW_BILLING_HELP_LINKS.

We should use the generic name of the env variable since we intend to
use it in places without the billing help links context.
This commit is contained in:
Shubham Padia
2025-07-14 11:49:32 +00:00
committed by Tim Abbott
parent 124da4d588
commit 37da139442
3 changed files with 4 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ export default defineConfig({
optional: true,
default: true,
}),
SHOW_BILLING_HELP_LINKS: envField.boolean({
CORPORATE_ENABLED: envField.boolean({
context: "client",
access: "public",
optional: true,

View File

@@ -1,7 +1,7 @@
---
import assert from "node:assert";
import {SHOW_BILLING_HELP_LINKS, SHOW_RELATIVE_LINKS} from "astro:env/client";
import {CORPORATE_ENABLED, SHOW_RELATIVE_LINKS} from "astro:env/client";
/* eslint-disable import/extensions */
import RawZulipIconBarChart from "~icons/zulip-icon/bar-chart?raw";
@@ -22,6 +22,7 @@ import RawZulipIconUserGroupCog from "~icons/zulip-icon/user-group-cog?raw";
const PERSONAL_SETTINGS_TYPE = "Personal settings";
const ORGANIZATION_SETTINGS_TYPE = "Organization settings";
const SHOW_BILLING_HELP_LINKS = CORPORATE_ENABLED;
// This list has been transformed one-off from `help_settings_links.py`, we
// have added a comment in that file to update this list in case of any