|
|
|
@ -3,18 +3,11 @@ |
|
|
|
|
import React, { useState } from "react"; |
|
|
|
|
import { useForm } from "react-hook-form"; |
|
|
|
|
|
|
|
|
|
import Input from "../AnimatedInput/Input"; |
|
|
|
|
import CancleIcon from "../CancleIcon"; |
|
|
|
|
import Button from "../Button"; |
|
|
|
|
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; |
|
|
|
|
import TitleSubtitle from "../TitleSubtitle"; |
|
|
|
|
|
|
|
|
|
import calender from "./calender.svg"; |
|
|
|
|
import cancleIcon from "./cancle-icon.svg"; |
|
|
|
|
|
|
|
|
|
import documentCloud from "./document-cloud.svg"; |
|
|
|
|
|
|
|
|
|
import plus from "./plus.svg"; |
|
|
|
|
import Input from "../../AnimatedInput/Input"; |
|
|
|
|
import CancleIcon from "../../MiniComponents/CancleIcon"; |
|
|
|
|
import Button from "../../ButtonDesign/Button"; |
|
|
|
|
import ProfilePicNextToEachOther from "../../ProfilePicNextToEachOther"; |
|
|
|
|
import TitleSubtitle from "../../MiniComponents/TitleSubtitle"; |
|
|
|
|
|
|
|
|
|
const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
|
// const [activeInput, setActiveInput] = useState(false);
|
|
|
|
@ -42,7 +35,10 @@ const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
|
<div className="max-w-[920px] mx-auto relative bg-white rounded-lg shadow dark:bg-gray-700"> |
|
|
|
|
{/* cancle icon */} |
|
|
|
|
<div className="flex justify-between items-start p-5 rounded-t"> |
|
|
|
|
<CancleIcon backgroundColor={"bg-[#F8F8F8]"} icon={cancleIcon} /> |
|
|
|
|
<CancleIcon |
|
|
|
|
backgroundColor={"bg-[#F8F8F8]"} |
|
|
|
|
icon="images/PopupCardcancle-icon.svg" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
{/* modalBody */} |
|
|
|
|
<div className="mx-5"> |
|
|
|
@ -65,7 +61,7 @@ const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
|
register={register("firstName")} |
|
|
|
|
label="تقویم" |
|
|
|
|
type="text" |
|
|
|
|
icon={calender} |
|
|
|
|
icon={"images/PopupCardcalender.svg"} |
|
|
|
|
borderClassname={`border-2 border-[#06BACE] `} |
|
|
|
|
inputClassname={`px-4 py-2 text-[#0F0543] focus:bg-white`} |
|
|
|
|
activePlaceholderClass={"text-[#06BACE] bg-white"} |
|
|
|
@ -178,7 +174,7 @@ const PopupCard = ({ selectedChecklist, buttons }) => { |
|
|
|
|
subtitleClassName={"text-[#B3B3B3]"} |
|
|
|
|
/> |
|
|
|
|
<div className="mt-3 relative flex flex-row items-center justify-around border-2 border-dashed border-[#65A9FF] w-full p-4 rounded-md"> |
|
|
|
|
<img src={documentCloud} alt="" /> |
|
|
|
|
<img src="images/PopupCarddocument-cloud.svg" alt="" /> |
|
|
|
|
<input |
|
|
|
|
type="file" |
|
|
|
|
className="opacity-0 absolute left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-full h-full cursor-pointer" |
|
|
|
@ -232,7 +228,7 @@ PopupCard.defaultProps = { |
|
|
|
|
{ |
|
|
|
|
name: null, |
|
|
|
|
className: "bg-[#dddddd]", |
|
|
|
|
icon: calender, |
|
|
|
|
icon: "images/PopupCardcalender.svg", |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |