Docs/Comments to registration form component

This commit is contained in:
Davenludd 2024-03-20 13:56:13 +01:00
parent d9068949cd
commit c7c38d4201

View file

@ -6,6 +6,10 @@ import Button from "./Button";
import InputField from "./InputField"; import InputField from "./InputField";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
/**
* Renders a registration form for the admin to add new users in.
* @returns The JSX element representing the registration form.
*/
export default function Register(): JSX.Element { export default function Register(): JSX.Element {
const [username, setUsername] = useState<string>(); const [username, setUsername] = useState<string>();
const [password, setPassword] = useState<string>(); const [password, setPassword] = useState<string>();