@@ -23,7 +23,6 @@ import { ErrorResponseHandler } from "../../../common/types";
23
23
import { setErrorSnackMessage , setSnackBarMessage } from "../../../systemSlice" ;
24
24
import { useAppDispatch } from "../../../store" ;
25
25
import ModalWrapper from "../Common/ModalWrapper/ModalWrapper" ;
26
- import InputBoxWrapper from "../Common/FormComponents/InputBoxWrapper/InputBoxWrapper" ;
27
26
28
27
interface ICallHomeConfirmation {
29
28
onClose : ( refresh : boolean ) => any ;
@@ -43,7 +42,6 @@ const CallHomeConfirmation = ({
43
42
const dispatch = useAppDispatch ( ) ;
44
43
45
44
const [ loading , setLoading ] = useState < boolean > ( false ) ;
46
- const [ confirmText , setConfirmText ] = useState < string > ( "" ) ;
47
45
48
46
const onConfirmAction = ( ) => {
49
47
setLoading ( true ) ;
@@ -157,18 +155,6 @@ const CallHomeConfirmation = ({
157
155
available in your SUBNET Account and it will not be shared to other
158
156
persons or entities besides MinIO team and you.
159
157
</ Grid >
160
- To continue please type < b > CONFIRM</ b > in the box.
161
- < Grid item xs = { 12 } sx = { { marginBottom : 10 } } >
162
- < InputBoxWrapper
163
- id = "retype-tenant"
164
- name = "retype-tenant"
165
- onChange = { ( event : React . ChangeEvent < HTMLInputElement > ) => {
166
- setConfirmText ( event . target . value ) ;
167
- } }
168
- label = ""
169
- value = { confirmText }
170
- />
171
- </ Grid >
172
158
{ loading && (
173
159
< Grid
174
160
item
@@ -204,7 +190,7 @@ const CallHomeConfirmation = ({
204
190
type = "submit"
205
191
variant = { "callAction" }
206
192
color = "primary"
207
- disabled = { loading || confirmText !== "CONFIRM" }
193
+ disabled = { loading }
208
194
label = { "Yes, Save this Configuration" }
209
195
onClick = { onConfirmAction }
210
196
/>
0 commit comments