mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-04 15:39:35 -05:00
refactor: removing dupicity of onCancel and onClose
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user