Added security input fields

This commit is contained in:
Tilen Komel
2024-08-20 00:07:32 +02:00
parent 049f3de919
commit a8dcab0844

View File

@@ -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."
}
],
},
]}
/>
)
};