Refactored and cleaned up Modal and friends
This commit is contained in:
parent
f64426fbe0
commit
00a720faa9
31 changed files with 853 additions and 787 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue