update 1 file and delete 6 files

master
mahdi 3 years ago
parent c36b92b35b
commit b8cbb24837
  1. 0
      public/images/PopupCardcalender.svg
  2. 0
      public/images/PopupCardcancle-icon.svg
  3. 0
      public/images/PopupCarddocument-cloud.svg
  4. 0
      public/images/PopupCardplus.svg
  5. 28
      src/components/CardDesgin/PopupCard/index.js
  6. 14
      src/components/CardDesgin/index.js
  7. 0
      src/components/PopupCard/index.scss

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 271 B

@ -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",
},
],
};

@ -1,6 +1,7 @@
import React, { useState } from "react";
import CardTrelloDesign from "./CardTrelloDesign";
import PopupCard from "./PopupCard";
import ProcessCard from "./ProcessCard";
import CardDesign1 from "./CardDesign1";
import CardDesign2 from "./CardDesign2";
@ -11,12 +12,13 @@ import CustomToast2 from "./CustomToast2";
function CardDesgin() {
const list = {
1: <CardTrelloDesign />,
2: <ProcessCard />,
3: <CardDesign1 />,
4: <CardDesign2 />,
5: <CardDesign3 />,
5: <CustomToast />,
5: <CustomToast2 />,
2: <PopupCard />,
3: <ProcessCard />,
4: <CardDesign1 />,
5: <CardDesign2 />,
6: <CardDesign3 />,
7: <CustomToast />,
8: <CustomToast2 />,
};
const [type, setType] = useState(1);
return (

Loading…
Cancel
Save