17
17
import React , { useCallback , useEffect , useMemo , useState } from "react" ;
18
18
import debounce from "lodash/debounce" ;
19
19
import get from "lodash/get" ;
20
- import ModalWrapper from "../../Common/ModalWrapper/ModalWrapper" ;
21
20
import Grid from "@material-ui/core/Grid" ;
22
21
import InputBoxWrapper from "../../Common/FormComponents/InputBoxWrapper/InputBoxWrapper" ;
23
22
import { Button , LinearProgress , Paper , Typography } from "@material-ui/core" ;
@@ -27,10 +26,7 @@ import TableCell from "@material-ui/core/TableCell";
27
26
import TableRow from "@material-ui/core/TableRow" ;
28
27
import api from "../../../../common/api" ;
29
28
import { createStyles , Theme , withStyles } from "@material-ui/core/styles" ;
30
- import {
31
- containerForHeader ,
32
- modalBasic ,
33
- } from "../../Common/FormComponents/common/styleLibrary" ;
29
+ import { modalBasic } from "../../Common/FormComponents/common/styleLibrary" ;
34
30
import FormSwitchWrapper from "../../Common/FormComponents/FormSwitchWrapper/FormSwitchWrapper" ;
35
31
import SelectWrapper from "../../Common/FormComponents/SelectWrapper/SelectWrapper" ;
36
32
import {
@@ -268,6 +264,7 @@ const AddTenant = ({ classes }: IAddTenantProps) => {
268
264
vaultCert : "" ,
269
265
vaultCA : "" ,
270
266
gemaltoCA : "" ,
267
+ gcpPrivateKey : "" ,
271
268
} ) ;
272
269
273
270
// Files States
@@ -853,17 +850,6 @@ const AddTenant = ({ classes }: IAddTenantProps) => {
853
850
] ;
854
851
}
855
852
856
- if ( encryptionType === "gcp" ) {
857
- encryptionValidation = [
858
- ...encryptionValidation ,
859
- {
860
- fieldKey : "gcp_project_id" ,
861
- required : true ,
862
- value : gcpProjectID ,
863
- } ,
864
- ] ;
865
- }
866
-
867
853
if ( encryptionType === "aws" ) {
868
854
encryptionValidation = [
869
855
...encryptionValidation ,
@@ -1100,7 +1086,7 @@ const AddTenant = ({ classes }: IAddTenantProps) => {
1100
1086
} ,
1101
1087
} ;
1102
1088
break ;
1103
- case "GCP " :
1089
+ case "gcp " :
1104
1090
insertEncrypt = {
1105
1091
gcp : {
1106
1092
secretmanager : {
@@ -2311,12 +2297,9 @@ const AddTenant = ({ classes }: IAddTenantProps) => {
2311
2297
name = "gcp_project_id"
2312
2298
onChange = { ( e : React . ChangeEvent < HTMLInputElement > ) => {
2313
2299
setGcpProjectID ( e . target . value ) ;
2314
- clearValidationError ( "gcp_project_id" ) ;
2315
2300
} }
2316
2301
label = "Project ID"
2317
2302
value = { gcpProjectID }
2318
- error = { validationErrors [ "gcp_project_id" ] || "" }
2319
- required
2320
2303
/>
2321
2304
</ Grid >
2322
2305
< Grid item xs = { 12 } >
0 commit comments