-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,38 @@ | ||
import { DynamicForm } from "@app/components/Form/DynamicForm"; | ||
|
||
export const Security = (): JSX.Element => { | ||
const onSubmit = (data: any) => { | ||
console.log(data); | ||
}; | ||
return ( | ||
<h1>Security</h1> | ||
<DynamicForm | ||
onSubmit={onSubmit} | ||
fieldGroups={[ | ||
{ | ||
label: "Security", | ||
description: "Admin and direct messages keys", | ||
fields: [ | ||
{ | ||
type: "text", | ||
name: "publicKey", | ||
label: "Public Key", | ||
description: "Sent out to other nodes on the mesh to allow them to compute a shared secret key.", | ||
}, | ||
{ | ||
type: "text", | ||
name: "privateKey", | ||
label: "Private Key", | ||
description: "Used to create a shared key with a remote device." | ||
}, | ||
{ | ||
type: "text", | ||
name: "adminKey", | ||
label: "Admin Key", | ||
description: "The public key authorized to send admin messages to this node." | ||
} | ||
], | ||
}, | ||
]} | ||
/> | ||
) | ||
}; |