From 3177cf37e186423abd8c2d8dd148c51ddc1898ab Mon Sep 17 00:00:00 2001 From: AarifLamat <106091223+AarifLamat@users.noreply.github.com> Date: Mon, 5 Feb 2024 15:32:06 +0800 Subject: [PATCH 01/24] cleaned up repair request form --- src/components/Button/index.tsx | 4 +++- src/components/FormFields/box-label.tsx | 2 +- src/components/FormFields/field-text-area.tsx | 3 ++- .../Forms/create-repair-request.tsx | 20 +++++++++++++------ src/components/terms-and-conditions.tsx | 12 +++++++---- src/pages/repair-request/index.tsx | 19 +++++------------- 6 files changed, 33 insertions(+), 27 deletions(-) diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 615bcebe..220908e9 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -10,6 +10,7 @@ interface ButtonProps extends ButtonHTMLAttributes { textSize?: string; hover?: string; position?: string; + textWeight?: string; } export default function Button({ @@ -22,13 +23,14 @@ export default function Button({ textSize = "text-lg", hover = "hover:bg-primary-800", position = "mx-auto", + textWeight = "font-normal", children, ...props }: ButtonProps) { return ( diff --git a/src/components/FormFields/box-label.tsx b/src/components/FormFields/box-label.tsx index ea846ebe..0a23d4eb 100644 --- a/src/components/FormFields/box-label.tsx +++ b/src/components/FormFields/box-label.tsx @@ -15,7 +15,7 @@ export default function Label({ ...props }: FormProps) { return ( -