diff --git a/src/assets/logos/Phone_lost.png b/src/assets/logos/Phone_lost.png index 6d05337..24d6c66 100644 Binary files a/src/assets/logos/Phone_lost.png and b/src/assets/logos/Phone_lost.png differ diff --git a/src/components/CreateModal/CreateModal.jsx b/src/components/CreateModal/CreateModal.jsx index 0c3ee83..79871f5 100644 --- a/src/components/CreateModal/CreateModal.jsx +++ b/src/components/CreateModal/CreateModal.jsx @@ -26,6 +26,7 @@ import { useSteps, Box, ModalCloseButton, + Textarea, } from "@chakra-ui/react"; // import logo from "../../assets/images/small_logo.png"; import { storage } from "../../firebase"; @@ -53,6 +54,7 @@ export default function CreateModal({ uploadImg, upload, }) { + const oldNewAddedItem = newAddedItem; const { user } = UserAuth(); const { onLoginModalOpen } = useContext(DataContext); const { isOpen, onOpen, onClose } = useDisclosure(); @@ -85,8 +87,8 @@ export default function CreateModal({ const [date, setDate] = useState(new Date()); const steps = [ - { title: "First", description: "Enter Item Info" }, - { title: "Second", description: "Select Item Type" }, + { title: "First", description: "Enter Info" }, + { title: "Second", description: "Select Type" }, { title: "Third", description: "Choose Date" }, { title: "Fourth", description: "File Upload" }, { title: "Fifth", description: "Check Info" }, @@ -161,11 +163,11 @@ export default function CreateModal({ setIsEdit(false); onClose(); }} - size="5xl" + size="4xl" closeOnOverlayClick={false} > - + {/* stepper */} @@ -193,36 +195,37 @@ export default function CreateModal({ {/* first step */} {activeStep === 0 && ( - - - Enter your information below:{" "} - + + + Enter your item below: - - setNewAddedItem((prev) => ({ - ...prev, - name: e.target.value, - })) - } - /> - - setNewAddedItem((prev) => ({ - ...prev, - description: e.target.value, - })) - } - /> - + + setNewAddedItem((prev) => ({ + ...prev, + name: e.target.value, + })) + } + /> +