diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx index 000b7da..5003b90 100644 --- a/src/app/business/apply/page.tsx +++ b/src/app/business/apply/page.tsx @@ -35,6 +35,8 @@ export default function Apply() { const [projectType, setProjectType] = useState([]); const [projectPitch, setProjectPitch] = useState(""); const [applyProject, setApplyProject] = useState(false); + const [selectedImages, setSelectedImages] = useState([]); + const communitySize = [ "N/A", "0-5K", @@ -45,6 +47,17 @@ export default function Apply() { "100K+", ]; + const handleRemoveImage = (index: number) => { + const updatedImages = selectedImages.filter((_, i) => i !== index); + setSelectedImages(updatedImages); + }; + const handleFileChange = (event: React.ChangeEvent) => { + if (event.target.files) { + const filesArray = Array.from(event.target.files); + setSelectedImages((prevImages) => [...prevImages, ...filesArray]); + } + }; + const onSubmit = (data: any) => { alert(JSON.stringify(data)); }; @@ -495,6 +508,49 @@ export default function Apply() { + + {/* Project pictures */} +
+ +
+ + + Feel free to upload any additional images that provide{" "} +
+ further insight into your project. +
+
+
+ {selectedImages.map((image, index) => ( +
+ {image.name} + +
+ ))} +
+
)}