@@ -12,28 +47,11 @@ const BasicInfo = (): FC => {
labelClass="font-bold text-[18px] leading-[21.78px] tracking-[2%] text-[#5C2684] mb-[2px]"
select
selectClass="w-full h-[36px]"
- selectOptions={[
- {
- value: "",
- label: "Select",
- },
- {
- value: "ms",
- label: "Ms",
- },
- {
- value: "mr",
- label: "Mr",
- },
- {
- value: "miss",
- label: "Miss",
- },
- {
- value: "mrs",
- label: "Mrs",
- },
- ]}
+ selectOptions={titleOptions}
+ value=""
+ onChange={handleChange}
+ onInput={handleInput}
+ ref={inputRef}
/>
{
labelClass="font-bold text-[18px] leading-[21.78px] tracking-[2%] text-[#5C2684] mb-[2px]"
select
selectClass="w-full h-[36px]"
- selectOptions={[
- {
- value: "",
- label: "Select",
- },
- {
- value: "ms",
- label: "Ms",
- },
- {
- value: "mr",
- label: "Mr",
- },
- {
- value: "miss",
- label: "Miss",
- },
- {
- value: "mrs",
- label: "Mrs",
- },
- ]}
+ selectOptions={maritalStatusOptions}
+ value=""
+ onChange={handleChange}
+ onInput={handleInput}
+ ref={inputRef}
/>
{
labelClass="font-bold text-[18px] leading-[21.78px] tracking-[2%] text-[#5C2684] mb-[2px] gap-[2px]"
input
inputClass="w-full h-[36px] bg-[#EFEFEF] px-[2px]"
+ value=""
+ onChange={handleChange}
+ onInput={handleInput}
+ ref={inputRef}
/>
diff --git a/src/components/GetStarted/GetStarted.tsx b/src/components/GetStarted/GetStarted.tsx
index ea6a80d..ede4d69 100644
--- a/src/components/GetStarted/GetStarted.tsx
+++ b/src/components/GetStarted/GetStarted.tsx
@@ -1,7 +1,6 @@
-import { FC } from "react";
import BasicInfo from "./BasicInfo";
-const GetStarted: FC = () => {
+const GetStarted = () => {
return (
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index ad41802..1c95973 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -1,4 +1,4 @@
-import { useState, ChangeEvent, FC } from "react";
+import React, { useState, ChangeEvent } from "react";
import Logo from "../../assets/icons/logo.svg";
import Button from "../shared/Button";
import { lowerMenuItems } from "../../utils/data";
@@ -15,7 +15,7 @@ type HiddenMenuItems = {
hideMenu?: boolean;
};
-const Header: FC
= ({
+const Header: React.FC = ({
hideSidebar = false,
hideMenu = false,
}) => {
diff --git a/src/components/Home/Requirements/FeatureText.tsx b/src/components/Home/Requirements/FeatureText.tsx
index 518349c..e4e9c44 100644
--- a/src/components/Home/Requirements/FeatureText.tsx
+++ b/src/components/Home/Requirements/FeatureText.tsx
@@ -1,8 +1,7 @@
-import { FC } from "react";
import { Link } from "react-router-dom";
import { RouteHandler } from "../../../router/routes";
-const FeatureText: FC = () => {
+const FeatureText = () => {
return (
diff --git a/src/components/shared/Button.tsx b/src/components/shared/Button.tsx
index 2bf778d..3aca917 100644
--- a/src/components/shared/Button.tsx
+++ b/src/components/shared/Button.tsx
@@ -1,10 +1,12 @@
-import { FC } from "react";
-type ButtonProps = {
- className?: string;
- text: string;
-};
+import React from "react";
-const Button = ({ text, className }: ButtonProps): FC => {
+interface ButtonProps {
+ text: string;
+ className?: string;
+ onClick?: () => void;
+}
+
+const Button: React.FC
= ({ text, className }) => {
return (