From a49cfc9f01e142e07bd81528378b179acece0e39 Mon Sep 17 00:00:00 2001 From: Davenludd Date: Fri, 15 Mar 2024 14:30:45 +0100 Subject: [PATCH] Update button styles and add type prop --- frontend/src/Components/Button.tsx | 3 +++ frontend/src/Components/Register.tsx | 2 +- frontend/src/Pages/LoginPage.tsx | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/Components/Button.tsx b/frontend/src/Components/Button.tsx index cf6a887..38a1853 100644 --- a/frontend/src/Components/Button.tsx +++ b/frontend/src/Components/Button.tsx @@ -1,14 +1,17 @@ function Button({ text, onClick, + type, }: { text: string; onClick: () => void; + type: "submit" | "button" | "reset"; }): JSX.Element { return ( diff --git a/frontend/src/Components/Register.tsx b/frontend/src/Components/Register.tsx index e8d93c5..c873a0e 100644 --- a/frontend/src/Components/Register.tsx +++ b/frontend/src/Components/Register.tsx @@ -66,7 +66,7 @@ export default function Register(): JSX.Element {