refactor: removing dupicity of onCancel and onClose
This commit is contained in:
1 parent
02d65bd0bc
commit
f0c1d30de0
7 files changed
+1
-12
No files matched your search
@@ -264,7 +264,6 @@ const Settings = ({ isAdmin }) => {
|
||||
</Stack>
|
||||
<Dialog
|
||||
open={isOpen.deleteStats}
|
||||
onClose={() => setIsOpen(deleteStatsMonitorsInitState)}
|
||||
theme={theme}
|
||||
title="Do you want to clear all stats?"
|
||||
description="Once deleted, this monitor cannot be retrieved."
|
||||
@@ -313,7 +312,6 @@ const Settings = ({ isAdmin }) => {
|
||||
</Stack>
|
||||
<Dialog
|
||||
open={isOpen.deleteMonitors}
|
||||
onClose={() => setIsOpen(deleteStatsMonitorsInitState)}
|
||||
theme={theme}
|
||||
title="Do you want to remove all monitors?"
|
||||
onCancel={() => setIsOpen(deleteStatsMonitorsInitState)}
|
||||
|
||||
Reference in new issue
Block a user