Skip to content

Commit

Permalink
Added security input fields
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Aug 19, 2024
1 parent 049f3de commit a8dcab0
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion src/components/PageComponents/Config/Security.tsx
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."
}
],
},
]}
/>
)
};

0 comments on commit a8dcab0

Please sign in to comment.