File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
routes/settings/components/device-settings Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ type TProps = {
29
29
centered ?: boolean ;
30
30
disableEscape ?: boolean ;
31
31
onClose ?: ( e ?: Event ) => void ;
32
- disabledClose ?: boolean ;
33
32
children : React . ReactNode ;
34
33
open : boolean ;
35
34
}
@@ -43,7 +42,6 @@ export const Dialog = ({
43
42
centered,
44
43
disableEscape,
45
44
onClose,
46
- disabledClose,
47
45
children,
48
46
open,
49
47
} : TProps ) => {
@@ -204,7 +202,7 @@ export const Dialog = ({
204
202
{ onClose ? (
205
203
< button className = { style . closeButton } onClick = { ( ) => {
206
204
deactivate ( true ) ;
207
- } } disabled = { disabledClose } >
205
+ } } >
208
206
< CloseXDark className = "show-in-lightmode" />
209
207
< CloseXWhite className = "show-in-darkmode" />
210
208
</ button >
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ type TProps = {
32
32
type TDialog = {
33
33
open : boolean ;
34
34
handleCloseDialog : ( ) => void ;
35
- isConfirming : boolean ;
36
35
understand : boolean ;
37
36
handleUnderstandChange : ( e : ChangeEvent < HTMLInputElement > ) => void ;
38
37
handleReset : ( ) => void ;
@@ -84,7 +83,6 @@ const FactoryResetSetting = ({ deviceID }: TProps) => {
84
83
< FactoryResetDialog
85
84
open = { activeDialog }
86
85
handleCloseDialog = { abort }
87
- isConfirming = { isConfirming }
88
86
understand = { understand }
89
87
handleUnderstandChange = { handleUnderstandChange }
90
88
handleReset = { reset }
@@ -98,7 +96,6 @@ const FactoryResetSetting = ({ deviceID }: TProps) => {
98
96
const FactoryResetDialog = ( {
99
97
open,
100
98
handleCloseDialog,
101
- isConfirming,
102
99
understand,
103
100
handleUnderstandChange,
104
101
handleReset
@@ -109,7 +106,6 @@ const FactoryResetDialog = ({
109
106
open = { open }
110
107
title = { t ( 'reset.title' ) }
111
108
onClose = { handleCloseDialog }
112
- disabledClose = { isConfirming }
113
109
small >
114
110
< div className = "columnsContainer half" >
115
111
< div className = "columns" >
@@ -147,4 +143,4 @@ const FactoryResetWaitDialog = ({ isConfirming }: TWaitDialog) => {
147
143
148
144
} ;
149
145
150
- export { FactoryResetSetting } ;
146
+ export { FactoryResetSetting } ;
You can’t perform that action at this time.
0 commit comments