From 3cc01db55f4db063c53a3900dece207d237ab33d Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 12 Jun 2024 13:49:38 -0700 Subject: [PATCH] Wrapped login and register in forms --- Client/src/Components/Button/index.jsx | 7 +- .../TextFields/Email/EmailTextField.jsx | 2 + .../TextFields/Password/PasswordTextField.jsx | 2 + .../Components/TextFields/Text/TextField.jsx | 2 + Client/src/Pages/Login/index.jsx | 11 +- Client/src/Pages/Register/index.jsx | 149 +++++++++--------- 6 files changed, 92 insertions(+), 81 deletions(-) diff --git a/Client/src/Components/Button/index.jsx b/Client/src/Components/Button/index.jsx index 6f67f0c02..72c438514 100644 --- a/Client/src/Components/Button/index.jsx +++ b/Client/src/Components/Button/index.jsx @@ -36,6 +36,7 @@ const levelConfig = { * @component * @param {Object} props * @param {'primary' | 'secondary' | 'tertiary' | 'error' | 'imagePrimary' | 'imageSecondary' | 'imageTertiary'} props.level - The level of the button + * @param {string} props.type - The type of the button * @param {string} props.label - The label of the button * @param {React.ReactNode} props.img - Image for button * @param {boolean} [props.disabled] - Whether the button is disabled @@ -44,13 +45,14 @@ const levelConfig = { * @returns {JSX.Element} * @example * // Render an error button - *