2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-09-16 15:52:56 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-09-17 22:24:21 +00:00
|
|
|
import React from 'react';
|
2022-06-08 22:00:32 +00:00
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { LocalizerType } from '../types/Util';
|
2021-09-17 22:24:21 +00:00
|
|
|
import { useEscapeHandling } from '../hooks/useEscapeHandling';
|
2021-09-16 15:52:56 +00:00
|
|
|
|
2024-11-06 02:05:24 +00:00
|
|
|
export type AboutProps = Readonly<{
|
2021-09-16 15:52:56 +00:00
|
|
|
closeAbout: () => unknown;
|
2024-11-06 02:05:24 +00:00
|
|
|
appEnv: string;
|
|
|
|
arch: string;
|
|
|
|
platform: string;
|
2021-09-16 15:52:56 +00:00
|
|
|
i18n: LocalizerType;
|
|
|
|
version: string;
|
2024-11-06 02:05:24 +00:00
|
|
|
}>;
|
2021-09-16 15:52:56 +00:00
|
|
|
|
2022-11-18 00:45:19 +00:00
|
|
|
export function About({
|
2021-09-16 15:52:56 +00:00
|
|
|
closeAbout,
|
2024-11-06 02:05:24 +00:00
|
|
|
appEnv,
|
|
|
|
arch,
|
|
|
|
platform,
|
2023-03-14 15:55:31 +00:00
|
|
|
i18n,
|
|
|
|
version,
|
2024-11-06 02:05:24 +00:00
|
|
|
}: AboutProps): JSX.Element {
|
2021-09-17 22:24:21 +00:00
|
|
|
useEscapeHandling(closeAbout);
|
2021-09-16 15:52:56 +00:00
|
|
|
|
2024-11-06 02:05:24 +00:00
|
|
|
let env: string;
|
|
|
|
|
|
|
|
if (platform === 'darwin') {
|
|
|
|
if (arch === 'arm64') {
|
|
|
|
env = i18n('icu:About__AppEnvironment--AppleSilicon', { appEnv });
|
|
|
|
} else {
|
|
|
|
env = i18n('icu:About__AppEnvironment--AppleIntel', { appEnv });
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
env = i18n('icu:About__AppEnvironment', { appEnv });
|
|
|
|
}
|
|
|
|
|
2021-09-16 15:52:56 +00:00
|
|
|
return (
|
2024-01-16 21:32:38 +00:00
|
|
|
<div className="About">
|
|
|
|
<div className="module-splash-screen">
|
2024-11-06 02:05:24 +00:00
|
|
|
<div className="module-splash-screen__logo module-splash-screen__logo--128" />
|
2021-09-16 15:52:56 +00:00
|
|
|
|
2024-11-06 02:05:24 +00:00
|
|
|
<h1 className="About__Title">{i18n('icu:signalDesktop')}</h1>
|
2024-01-16 21:32:38 +00:00
|
|
|
<div className="version">{version}</div>
|
2024-11-06 02:05:24 +00:00
|
|
|
<div className="environment">{env}</div>
|
|
|
|
<br />
|
2024-01-16 21:32:38 +00:00
|
|
|
<div>
|
|
|
|
<a href="https://signal.org">signal.org</a>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div>
|
|
|
|
<a
|
|
|
|
className="acknowledgments"
|
|
|
|
href="https://github.com/signalapp/Signal-Desktop/blob/main/ACKNOWLEDGMENTS.md"
|
|
|
|
>
|
|
|
|
{i18n('icu:softwareAcknowledgments')}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a className="privacy" href="https://signal.org/legal">
|
|
|
|
{i18n('icu:privacyPolicy')}
|
|
|
|
</a>
|
2021-09-16 15:52:56 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-16 21:32:38 +00:00
|
|
|
</div>
|
2021-09-16 15:52:56 +00:00
|
|
|
);
|
2022-11-18 00:45:19 +00:00
|
|
|
}
|