refactor: removing dupicity of onCancel and onClose

This commit is contained in:
Caio Cabral
2024-10-22 11:56:12 -04:00
parent 02d65bd0bc
commit f0c1d30de0
7 changed files with 1 additions and 12 deletions
+1 -2
View File
@@ -7,7 +7,6 @@ const Dialog = ({
title,
description,
open,
onClose,
theme,
onCancel,
confirmationButtonLabel,
@@ -19,7 +18,7 @@ const Dialog = ({
title={title}
description={description}
open={open}
onClose={onClose}
onClose={onCancel}
theme={theme}
>
<Stack
@@ -374,7 +374,6 @@ const ProfilePanel = () => {
<Dialog
open={isModalOpen("delete")}
onClose={() => setIsOpen("")}
theme={theme}
title={"Really delete this account?"}
description={