Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

navbar-alerts: Clean up demo organization banner label generation.

Lauryn Menardd7afd6af425f
diff --git a/web/src/navbar_alerts.ts b/web/src/navbar_alerts.ts
index bd35a770cf2..e51eb7fa2e7 100644
--- a/web/src/navbar_alerts.ts
+++ b/web/src/navbar_alerts.ts
@@ -1,5 +1,4 @@
import {addDays} from "date-fns";
-import Handlebars from "handlebars";
import $ from "jquery";
import assert from "minimalistic-assert";
@@ -12,7 +11,7 @@ import * as channel from "./channel.ts";
import * as demo_organizations_ui from "./demo_organizations_ui.ts";
import * as desktop_notifications from "./desktop_notifications.ts";
import * as feedback_widget from "./feedback_widget.ts";
-import {$t, $t_html} from "./i18n.ts";
+import {$t} from "./i18n.ts";
import type {LocalStorage} from "./localstorage.ts";
import {localstorage} from "./localstorage.ts";
import {page_params} from "./page_params.ts";
@@ -372,16 +371,14 @@ const demo_organization_deadline_banner = (): AlertBanner => {
return {
process: "demo-organization-deadline",
intent: days_remaining <= 7 ? "danger" : "info",
- label: new Handlebars.SafeString(
- $t_html(
- {
- defaultMessage:
- "This demo organization will be automatically deleted in {days_remaining} days, unless it's converted into a permanent organization.",
- },
- {
- days_remaining,
- },
- ),
+ label: $t(
+ {
+ defaultMessage:
+ "This demo organization will be automatically deleted in {days_remaining} days, unless it's converted into a permanent organization.",
+ },
+ {
+ days_remaining,
+ },
),
buttons,
close_button: true,