feat: remove unnecessary react fragment

This commit is contained in:
Zamitto 2024-08-30 10:06:10 -03:00
parent cc10186ec3
commit 40d2b36a20

View File

@ -18,25 +18,23 @@ export const UserConfirmUndoFriendshipModal = ({
const { t } = useTranslation("user_profile");
return (
<>
<Modal
visible={visible}
title={t("sign_out_modal_title")}
onClose={onClose}
>
<div className={styles.signOutModalContent}>
<p>{t("undo_friendship_modal_text", { displayName })}</p>
<div className={styles.signOutModalButtonsContainer}>
<Button onClick={onConfirm} theme="danger">
{t("undo_friendship")}
</Button>
<Modal
visible={visible}
title={t("sign_out_modal_title")}
onClose={onClose}
>
<div className={styles.signOutModalContent}>
<p>{t("undo_friendship_modal_text", { displayName })}</p>
<div className={styles.signOutModalButtonsContainer}>
<Button onClick={onConfirm} theme="danger">
{t("undo_friendship")}
</Button>
<Button onClick={onClose} theme="primary">
{t("cancel")}
</Button>
</div>
<Button onClick={onClose} theme="primary">
{t("cancel")}
</Button>
</div>
</Modal>
</>
</div>
</Modal>
);
};