Browse Source

Add submit button to work

pull/277/head
Tilen Komel 2 years ago
parent
commit
9bea6870bb
  1. 4
      src/components/PageComponents/Config/Security.tsx

4
src/components/PageComponents/Config/Security.tsx

@ -89,7 +89,7 @@ export const Security = (): JSX.Element => {
const privateKeyInputChangeEvent = ( const privateKeyInputChangeEvent = (
e: React.ChangeEvent<HTMLInputElement>, e: React.ChangeEvent<HTMLInputElement>,
) => { ) => {
const privateKeyB64String = e.currentTarget?.value; const privateKeyB64String = e.target.value;
setPrivateKey(privateKeyB64String); setPrivateKey(privateKeyB64String);
validateKey( validateKey(
privateKeyB64String, privateKeyB64String,
@ -116,6 +116,8 @@ export const Security = (): JSX.Element => {
return ( return (
<DynamicForm<SecurityValidation> <DynamicForm<SecurityValidation>
onSubmit={onSubmit} onSubmit={onSubmit}
submitType="onSubmit"
hasSubmitButton={true}
defaultValues={{ defaultValues={{
...config.security, ...config.security,
...{ ...{

Loading…
Cancel
Save