Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Stylize detected timezone (#1311)
Luke Vellac093066f9e47
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.jsonindex 4e916a8d6..b1685b024 100644--- a/apps/web/public/locales/en/app.json+++ b/apps/web/public/locales/en/app.json@@ -270,7 +270,7 @@"downloadICSFile": "Download ICS File","schedulateDate": "Scheduled Date","timeZoneChangeDetectorTitle": "Timezone Change Detected",- "timeZoneChangeDetectorMessage": "Your timezone has changed to {currentTimeZone}. Do you want to update your preferences?",+ "timeZoneChangeDetectorMessage": "Your timezone has changed to <b>{currentTimeZone}</b>. Do you want to update your preferences?","yesUpdateTimezone": "Yes, update my timezone","noKeepCurrentTimezone": "No, keep the current timezone","annualBenefit": "{count} months free"diff --git a/apps/web/src/app/[locale]/timezone-change-detector.tsx b/apps/web/src/app/[locale]/timezone-change-detector.tsxindex 77f8d3c72..72e2b3a9d 100644--- a/apps/web/src/app/[locale]/timezone-change-detector.tsx+++ b/apps/web/src/app/[locale]/timezone-change-detector.tsx@@ -8,6 +8,7 @@ import {DialogHeader,DialogTitle,} from "@rallly/ui/dialog";+import * as Sentry from "@sentry/nextjs";import { usePostHog } from "posthog-js/react";import React, { useState } from "react";@@ -25,7 +26,7 @@ export function TimeZoneChangeDetector() {return cachedPreviousTimeZone;}} catch (e) {- console.error(e);+ Sentry.captureException(e);}const timeZone = preferences.timeZone ?? getBrowserTimeZone();@@ -33,7 +34,7 @@ export function TimeZoneChangeDetector() {try {localStorage.setItem("previousTimeZone", timeZone);} catch (e) {- console.error(e);+ Sentry.captureException(e);}return timeZone;@@ -61,10 +62,11 @@ export function TimeZoneChangeDetector() {/></DialogTitle></DialogHeader>- <p className="text-muted-foreground text-sm">+ <p className="text-muted-foreground text-sm leading-relaxed"><Transi18nKey="timeZoneChangeDetectorMessage"- defaults="Your timezone has changed to {currentTimeZone}. Do you want to update your preferences?"+ defaults="Your timezone has changed to <b>{currentTimeZone}</b>. Do you want to update your preferences?"+ components={{ b: <b className="text-foreground font-medium" /> }}values={{ currentTimeZone }}/></p>