mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add reusable <Modal> component, use with <Alert>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019-2020 Signal Messenger, LLC
|
||||
// Copyright 2019-2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
@@ -28,6 +28,7 @@ function focusRef(el: HTMLElement | null) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: This should use <Modal>. See DESKTOP-1038.
|
||||
export const ConfirmationDialog = React.memo(
|
||||
({ i18n, onClose, cancelText, children, title, actions }: Props) => {
|
||||
React.useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user