Browse Source

Added security input fields

pull/275/head
Tilen Komel 2 years ago
parent
commit
a8dcab0844
  1. 35
      src/components/PageComponents/Config/Security.tsx

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

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