From f8beea915d4bf9eb6def027cd1512844e5093869 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 28 Jul 2023 11:59:55 -0700 Subject: [PATCH] Include a (non-localized) message on startup screens in staging Co-authored-by: Scott Nonnenberg --- ts/components/Inbox.tsx | 7 ++++++- .../InstallScreenQrCodeNotScannedStep.tsx | 11 ++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ts/components/Inbox.tsx b/ts/components/Inbox.tsx index 7c71801d58..558be808a2 100644 --- a/ts/components/Inbox.tsx +++ b/ts/components/Inbox.tsx @@ -15,6 +15,7 @@ import { showToast } from '../util/showToast'; import { strictAssert } from '../util/assert'; import { TargetedMessageSource } from '../state/ducks/conversationsEnums'; import { usePrevious } from '../hooks/usePrevious'; +import { Environment, getEnvironment } from '../environment'; export type PropsType = { firstEnvelopeTimestamp: number | undefined; @@ -280,7 +281,11 @@ export function Inbox({
{renderMiniPlayer({ shouldFlow: false })}
-

{i18n('icu:welcomeToSignal')}

+

+ {getEnvironment() !== Environment.Staging + ? i18n('icu:welcomeToSignal') + : 'THIS IS A STAGING DESKTOP'} +

- - {i18n('icu:Install__support-link')} - + {getEnvironment() !== Environment.Staging ? ( + + {i18n('icu:Install__support-link')} + + ) : ( + 'THIS IS A STAGING DESKTOP' + )}