mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 11:42:10 +00:00
feat: remove unnecessary react fragment
This commit is contained in:
parent
cc10186ec3
commit
40d2b36a20
1 changed files with 16 additions and 18 deletions
|
@ -18,25 +18,23 @@ export const UserConfirmUndoFriendshipModal = ({
|
||||||
const { t } = useTranslation("user_profile");
|
const { t } = useTranslation("user_profile");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<Modal
|
||||||
<Modal
|
visible={visible}
|
||||||
visible={visible}
|
title={t("sign_out_modal_title")}
|
||||||
title={t("sign_out_modal_title")}
|
onClose={onClose}
|
||||||
onClose={onClose}
|
>
|
||||||
>
|
<div className={styles.signOutModalContent}>
|
||||||
<div className={styles.signOutModalContent}>
|
<p>{t("undo_friendship_modal_text", { displayName })}</p>
|
||||||
<p>{t("undo_friendship_modal_text", { displayName })}</p>
|
<div className={styles.signOutModalButtonsContainer}>
|
||||||
<div className={styles.signOutModalButtonsContainer}>
|
<Button onClick={onConfirm} theme="danger">
|
||||||
<Button onClick={onConfirm} theme="danger">
|
{t("undo_friendship")}
|
||||||
{t("undo_friendship")}
|
</Button>
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button onClick={onClose} theme="primary">
|
<Button onClick={onClose} theme="primary">
|
||||||
{t("cancel")}
|
{t("cancel")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</div>
|
||||||
</>
|
</Modal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue