diff --git a/src/components/AnimatedInput/Input.js b/src/components/AnimatedInput/Input.js
index e96ee3b..f48e46a 100644
--- a/src/components/AnimatedInput/Input.js
+++ b/src/components/AnimatedInput/Input.js
@@ -10,6 +10,8 @@ const Input = ({
label,
borderClassname,
inputClassname,
+ placeholderClass,
+ activePlaceholderClass,
type,
maxLength,
max,
@@ -23,17 +25,17 @@ const Input = ({
{label}
@@ -54,8 +56,8 @@ const Input = ({
if (!isNaN(min) && +e.target.value < min) value = min;
e.target.value = value;
}}
- className={`rtl w-full h-full px-4 py-2 outline-0 text-xs rounded-md text-[#0F0543] focus:bg-white border-[#E0E0E0] focus:border-[#2483E1] focus:ring-transparent
- ${!value ? "bg-[#F9F9F9] " : "bg-white "} `}
+ className={`rtl w-full h-full outline-0 text-xs rounded-md border-transparent focus:border-transparent focus:ring-transparent ${inputClassname}
+ ${!value ? "bg-[#F9F9F9] " : "bg-white"} `}
onChange={(e) => setValue(e.target.value)}
inputMode={type === "number" ? "numeric" : ""}
/>
@@ -75,5 +77,7 @@ const Input = ({
export default Input;
Input.defaultProps = {
- // borderClassname: "border-[#E0E0E0]",
+ inputClassname: "",
+ placeholderClass: "text-red-600",
+ activePlaceholderClass: "text-blue-600 bg-white",
};
diff --git a/src/components/FormInput/index.js b/src/components/FormInput/index.js
index 3e60f96..f8fb05a 100644
--- a/src/components/FormInput/index.js
+++ b/src/components/FormInput/index.js
@@ -16,29 +16,22 @@ const FormInput = ({ items }) => {
setSelectedInput(true)}
+ borderClassname={`border border-[#E0E0E0] `}
+ inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`}
/>
{
register={register("mobileNumber")}
label="شماره تماس"
type="number"
- borderClassname={`border-transparent `}
- className={``}
+ borderClassname={`border border-[#E0E0E0] `}
+ inputClassname={`px-3 py-2 text-[#0F0543] focus:bg-white`}
/>
تاریخ ورود
- {" "}
- {/* */}
+
);
diff --git a/src/components/PopupCard/index.js b/src/components/PopupCard/index.js
index 1e43771..e9ef929 100644
--- a/src/components/PopupCard/index.js
+++ b/src/components/PopupCard/index.js
@@ -1,7 +1,10 @@
// it has style inside index.scss ---> // Start PopupCard && end PopupCard
import React, { useState } from "react";
-import "./index.scss";
+import { useForm } from "react-hook-form";
+
+import Input from "../AnimatedInput/Input";
+
import CancleIcon from "../CancleIcon";
import cancleIcon from "./cancle-icon.svg";
@@ -13,12 +16,12 @@ import OutlineInput from "../OutlineInput";
import OutlineTextarea from "../OutlineTextarea";
import ButtonNewDesign from "../ButtonNewDesign";
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther";
-import Input from "../AnimatedInput/Input";
const PopupCard = ({ selectedChecklist }) => {
// const [activeInput, setActiveInput] = useState(false);
const [checklist, setChecklist] = useState(0);
+ const { register, getValues } = useForm();
return (
@@ -48,11 +51,23 @@ const PopupCard = ({ selectedChecklist }) => {
{/* divider */}