New option for control over update downloads

This commit is contained in:
Josh Perez 2021-08-19 18:56:29 -04:00 committed by GitHub
parent 80c1ad6ee3
commit e9308bbafb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 1230 additions and 803 deletions

View file

@ -0,0 +1,37 @@
// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { LocalizerType } from '../types/Util';
type PropsType = {
hasExpired: boolean;
i18n: LocalizerType;
};
export const DialogExpiredBuild = ({
hasExpired,
i18n,
}: PropsType): JSX.Element | null => {
if (!hasExpired) {
return null;
}
return (
<div className="LeftPaneDialog LeftPaneDialog--error">
<div className="LeftPaneDialog__message">
{i18n('expiredWarning')}{' '}
<a
className="LeftPaneDialog__action-text"
href="https://signal.org/download/"
rel="noreferrer"
tabIndex={-1}
target="_blank"
>
{i18n('upgrade')}
</a>
</div>
</div>
);
};