Compare commits

...

2 commits

Author SHA1 Message Date
thugborean
745786b7fd Merge remote-tracking branch 'origin/dev' into borean 2024-04-03 19:02:01 +02:00
borean
60b4bf2fc2 removed mandatory return 2024-03-31 18:18:51 +02:00
2 changed files with 3 additions and 5 deletions

View file

@ -36,7 +36,7 @@ function CreateProject(props: { name: string; description: string }): void {
* Provides UI for adding a project to the system.
* @returns {JSX.Element} - Returns the component UI for adding a project
*/
function AddProject(): JSX.Element {
function AddProject() {
const [name, setName] = useState("");
const [description, setDescription] = useState("");
@ -44,6 +44,7 @@ function AddProject(): JSX.Element {
<div className="flex flex-col h-fit w-screen items-center justify-center">
<div className="border-4 border-black bg-white flex flex-col items-center justify-center h-fit w-fit rounded-3xl content-center pl-20 pr-20">
<form
id="form"
className="bg-white rounded px-8 pt-6 pb-8 mb-4 items-center justify-center flex flex-col w-fit h-fit"
onSubmit={(e) => {
e.preventDefault();
@ -84,9 +85,6 @@ function AddProject(): JSX.Element {
<div className="flex items-center justify-between">
<Button
text="Create"
onClick={(): void => {
return;
}}
type="submit"
/>
</div>

View file

@ -13,7 +13,7 @@ function Button({
type,
}: {
text: string;
onClick: () => void;
onClick?: () => void;
type: "submit" | "button" | "reset";
}): JSX.Element {
return (