)
diff --git a/components/Form/ToggleField.tsx b/components/Form/ToggleField.tsx
index 720eb24..f6f9aac 100644
--- a/components/Form/ToggleField.tsx
+++ b/components/Form/ToggleField.tsx
@@ -3,6 +3,9 @@ import { useField } from "formik"
import React, { useState } from "react"
import ErrorMessage from "./ErrorMessage"
import RequiredAsterisk from "./RequiredAsterisk"
+import Separator from "./Separator"
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
+import { faClock } from "@fortawesome/free-regular-svg-icons"
const ToggleField = ({
children,
@@ -15,21 +18,30 @@ const ToggleField = ({
const [checked, setChecked] = useState(false)
return (
-
-
-
{
- setChecked(isChecked)
- field.onChange({ target: { name: field.name, value: isChecked } })
- }}
- >
-
-
+
+
+
+
+
+
+ {
+ setChecked(isChecked)
+ field.onChange({ target: { name: field.name, value: isChecked } })
+ }}
+ >
+
+
+ Toggle ON
+ |
+ Select Tolerance Level
+
+
)
diff --git a/components/Form/formSchemas.ts b/components/Form/formSchemas.ts
index 367c036..b942160 100644
--- a/components/Form/formSchemas.ts
+++ b/components/Form/formSchemas.ts
@@ -20,9 +20,5 @@ export const validationSchema = Yup.object({
manifestFile: Yup.mixed().required("A file is required").nullable(), // Allows for null values
splitSchedule: Yup.string().required("This field is required").oneOf(["Yes", "No"], "Invalid Option"),
client: Yup.string().required("Client selection is required").oneOf(["Single", "Multiple"], "Invalid Client Type"),
- testingCenter1: Yup.string().required("Testing center selection is required"), // Assuming a selection is required
- testingCenter2: Yup.string().required("Testing center selection is required"), // Assuming a selection is required
- testingCenter3: Yup.string().required("Testing center selection is required"), // Assuming a selection is required
- testingCenter4: Yup.string().required("Testing center selection is required"), // Assuming a selection is required
toleranceWindow: Yup.boolean().required("Tolerance window selection is required"), // Assuming this is a boolean represented by a toggle
})
diff --git a/components/Form/index.tsx b/components/Form/index.tsx
index ac41a0a..0db6a5e 100644
--- a/components/Form/index.tsx
+++ b/components/Form/index.tsx
@@ -19,7 +19,7 @@ import ToggleField from "./ToggleField"
import { FormValues } from "./types"
const FormComponent: React.FC = () => {
- const [formSubmitted, setFormSubmitted] = useState(false)
+ const [formSubmitted, setFormSubmitted] = useState(false);
const submitForm = (values: FormValues) => {
return axios.post(
@@ -60,8 +60,8 @@ const FormComponent: React.FC = () => {
return (