mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Refactored and cleaned up Modal and friends
This commit is contained in:
@@ -21,10 +21,15 @@ export const Alert: FunctionComponent<PropsType> = ({
|
||||
onClose,
|
||||
title,
|
||||
}) => (
|
||||
<Modal modalName="Alert" i18n={i18n} onClose={onClose} title={title}>
|
||||
{body}
|
||||
<Modal.ButtonFooter>
|
||||
<Modal
|
||||
modalName="Alert"
|
||||
i18n={i18n}
|
||||
onClose={onClose}
|
||||
title={title}
|
||||
modalFooter={
|
||||
<Button onClick={onClose}>{i18n('Confirmation--confirm')}</Button>
|
||||
</Modal.ButtonFooter>
|
||||
}
|
||||
>
|
||||
{body}
|
||||
</Modal>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user