Include a (non-localized) message on startup screens in staging
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
48e210c9b2
commit
f8beea915d
2 changed files with 14 additions and 4 deletions
|
@ -15,6 +15,7 @@ import { showToast } from '../util/showToast';
|
||||||
import { strictAssert } from '../util/assert';
|
import { strictAssert } from '../util/assert';
|
||||||
import { TargetedMessageSource } from '../state/ducks/conversationsEnums';
|
import { TargetedMessageSource } from '../state/ducks/conversationsEnums';
|
||||||
import { usePrevious } from '../hooks/usePrevious';
|
import { usePrevious } from '../hooks/usePrevious';
|
||||||
|
import { Environment, getEnvironment } from '../environment';
|
||||||
|
|
||||||
export type PropsType = {
|
export type PropsType = {
|
||||||
firstEnvelopeTimestamp: number | undefined;
|
firstEnvelopeTimestamp: number | undefined;
|
||||||
|
@ -280,7 +281,11 @@ export function Inbox({
|
||||||
<div className="Inbox__no-conversation-open">
|
<div className="Inbox__no-conversation-open">
|
||||||
{renderMiniPlayer({ shouldFlow: false })}
|
{renderMiniPlayer({ shouldFlow: false })}
|
||||||
<div className="module-splash-screen__logo module-img--128 module-logo-blue" />
|
<div className="module-splash-screen__logo module-img--128 module-logo-blue" />
|
||||||
<h3>{i18n('icu:welcomeToSignal')}</h3>
|
<h3>
|
||||||
|
{getEnvironment() !== Environment.Staging
|
||||||
|
? i18n('icu:welcomeToSignal')
|
||||||
|
: 'THIS IS A STAGING DESKTOP'}
|
||||||
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
<WhatsNewLink
|
<WhatsNewLink
|
||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
|
|
|
@ -18,6 +18,7 @@ import { InstallScreenSignalLogo } from './InstallScreenSignalLogo';
|
||||||
import { InstallScreenUpdateDialog } from './InstallScreenUpdateDialog';
|
import { InstallScreenUpdateDialog } from './InstallScreenUpdateDialog';
|
||||||
import { getClassNamesFor } from '../../util/getClassNamesFor';
|
import { getClassNamesFor } from '../../util/getClassNamesFor';
|
||||||
import type { UpdatesStateType } from '../../state/ducks/updates';
|
import type { UpdatesStateType } from '../../state/ducks/updates';
|
||||||
|
import { Environment, getEnvironment } from '../../environment';
|
||||||
|
|
||||||
// We can't always use destructuring assignment because of the complexity of this props
|
// We can't always use destructuring assignment because of the complexity of this props
|
||||||
// type.
|
// type.
|
||||||
|
@ -103,9 +104,13 @@ export function InstallScreenQrCodeNotScannedStep({
|
||||||
/>
|
/>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<a href="https://support.signal.org/hc/articles/360007320451#desktop_multiple_device">
|
{getEnvironment() !== Environment.Staging ? (
|
||||||
{i18n('icu:Install__support-link')}
|
<a href="https://support.signal.org/hc/articles/360007320451#desktop_multiple_device">
|
||||||
</a>
|
{i18n('icu:Install__support-link')}
|
||||||
|
</a>
|
||||||
|
) : (
|
||||||
|
'THIS IS A STAGING DESKTOP'
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue