diff --git a/app/layout.tsx b/app/layout.tsx index 8acd5b9..27b5590 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,5 @@ import "styles/tailwind.css" +import "styles/global.css" export default function RootLayout({ children }: { children: React.ReactNode }) { return ( diff --git a/app/page.tsx b/app/page.tsx index a2c83d2..29872af 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,29 +1,21 @@ -import { faXmark } from "@fortawesome/free-solid-svg-icons" -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { Metadata } from "next" import Form from "components/Form" +import Head from "next/head" export const metadata: Metadata = { title: "Form Components", } export default function Web() { + return ( <> + + +
- {/* Close button */} -
- -
- {/* Title */} -
-

Document Upload

-
- {/* Form layout */} -
-
diff --git a/components/Form/ClientField.tsx b/components/Form/ClientField.tsx index 02ff447..6af2e4c 100644 --- a/components/Form/ClientField.tsx +++ b/components/Form/ClientField.tsx @@ -13,7 +13,7 @@ type ClientFieldProps = { // Destructure the props in the function parameter const ClientField: React.FC = ({ testingCenters, clients }) => { return ( -
+
{testingCenters.map((testingCenter) => (
{testingCenter} diff --git a/components/Form/ErrorMessage.tsx b/components/Form/ErrorMessage.tsx index 7d36578..55a8928 100644 --- a/components/Form/ErrorMessage.tsx +++ b/components/Form/ErrorMessage.tsx @@ -2,7 +2,7 @@ import React from "react" const ErrorMessage = ({ touched, error }: { touched: boolean; error?: string }) => { if (touched && error) { - return

{error}

+ return

{error}

} return null } diff --git a/components/Form/FileInput.tsx b/components/Form/FileInput.tsx index 712c27a..acad4a4 100644 --- a/components/Form/FileInput.tsx +++ b/components/Form/FileInput.tsx @@ -83,7 +83,7 @@ const FileInput: React.FC = ({ label, ...props }) => { {/* Title */}
-
diff --git a/components/Form/RadioGroup.tsx b/components/Form/RadioGroup.tsx index 5fecb8c..7a10ae0 100644 --- a/components/Form/RadioGroup.tsx +++ b/components/Form/RadioGroup.tsx @@ -8,11 +8,13 @@ import Separator from "./Separator" const RadioGroupField = ({ name, label, + separator, options, ...props }: { name: string label: string + separator?: boolean options: string[] [x: string]: any // Allow any other props }) => { @@ -26,8 +28,8 @@ const RadioGroupField = ({ return (
- -