Fix UpdateTierCredentialsModal For MinIO tier (#2459)

This commit is contained in:
jinapurapu
2022-11-16 10:00:17 -08:00
committed by GitHub
parent 7cd0bc7cac
commit dbec9fbb4a

View File

@@ -62,9 +62,6 @@ const UpdateTierCredentialsModal = ({
}: ITierCredentialsModal) => {
const dispatch = useAppDispatch();
const [savingTiers, setSavingTiers] = useState<boolean>(false);
const [accessKey, setAccessKey] = useState<string>("");
const [secretKey, setSecretKey] = useState<string>("");
const [creds, setCreds] = useState<string>("");
const [encodedCreds, setEncodedCreds] = useState<string>("");
@@ -152,9 +149,9 @@ const UpdateTierCredentialsModal = ({
name="accessKey"
label="Access Key"
placeholder="Enter Access Key"
value={accessKey}
value={accountName}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setAccessKey(e.target.value);
setAccountName(e.target.value);
}}
/>
</div>
@@ -164,9 +161,9 @@ const UpdateTierCredentialsModal = ({
name="secretKey"
label="Secret Key"
placeholder="Enter Secret Key"
value={secretKey}
value={accountKey}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
setSecretKey(e.target.value);
setAccountKey(e.target.value);
}}
/>
</div>