Edit distribution lists via story settings menu
This commit is contained in:
parent
9986d10947
commit
e321e1fea8
42 changed files with 2403 additions and 102 deletions
55
ts/components/SignalConnectionsModal.tsx
Normal file
55
ts/components/SignalConnectionsModal.tsx
Normal file
|
@ -0,0 +1,55 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import type { LocalizerType } from '../types/Util';
|
||||
import { Button, ButtonVariant } from './Button';
|
||||
import { Intl } from './Intl';
|
||||
import { Modal } from './Modal';
|
||||
|
||||
export type PropsType = {
|
||||
i18n: LocalizerType;
|
||||
onClose: () => unknown;
|
||||
};
|
||||
|
||||
export const SignalConnectionsModal = ({
|
||||
i18n,
|
||||
onClose,
|
||||
}: PropsType): JSX.Element => {
|
||||
return (
|
||||
<Modal hasXButton i18n={i18n} onClose={onClose}>
|
||||
<div className="SignalConnectionsModal">
|
||||
<i className="SignalConnectionsModal__icon" />
|
||||
|
||||
<div className="SignalConnectionsModal__description">
|
||||
<Intl
|
||||
components={{
|
||||
connections: (
|
||||
<strong>{i18n('SignalConnectionsModal__title')}</strong>
|
||||
),
|
||||
}}
|
||||
i18n={i18n}
|
||||
id="SignalConnectionsModal__header"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ul className="SignalConnectionsModal__list">
|
||||
<li>{i18n('SignalConnectionsModal__bullet--1')}</li>
|
||||
<li>{i18n('SignalConnectionsModal__bullet--2')}</li>
|
||||
<li>{i18n('SignalConnectionsModal__bullet--3')}</li>
|
||||
</ul>
|
||||
|
||||
<div className="SignalConnectionsModal__description">
|
||||
{i18n('SignalConnectionsModal__footer')}
|
||||
</div>
|
||||
|
||||
<div className="SignalConnectionsModal__button">
|
||||
<Button onClick={onClose} variant={ButtonVariant.Primary}>
|
||||
{i18n('Confirmation--confirm')}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</Modal>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue