diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx index 7e4d166..1878fdd 100644 --- a/src/app/business/apply/page.tsx +++ b/src/app/business/apply/page.tsx @@ -21,6 +21,7 @@ export default function Apply() { const [isForSale, setIsForSale] = useState(""); const [isGenerating, setIsGenarting] = useState(""); const [pitch, setPitch] = useState(""); + const [projectType, setProjectType] = useState([]); const communitySize = [ "N/A", "0-5K", @@ -40,13 +41,28 @@ export default function Apply() { console.error(error); } else { if (BusinessType) { - console.table(); + // console.table(); setIndustry(BusinessType.map((item) => item.value)); } } }; + const fetchProjectType = async () => { + let { data: ProjectType, error } = await supabase + .from("ProjectType") + .select("value"); + + if (error) { + console.error(error); + } else { + if (ProjectType) { + console.table(ProjectType); + setProjectType(ProjectType.map((item) => item.value)); + } + } + }; useEffect(() => { fetchIndustry(); + fetchProjectType(); }, []); return (
@@ -65,7 +81,7 @@ export default function Apply() {

-
+

About your company

All requested information in this section is required. @@ -289,9 +305,70 @@ export default function Apply() {

+ + {/* apply first project */} +
+ {/* header */} +
+

+ Begin Your First Fundraising Project +

+

+ Starting a fundraising project is mandatory for all businesses. This + step is crucial
+ to begin your journey and unlock the necessary tools for raising + funds. +

+ + {/* project's name */} +
+ +
+ +
+
+ + {/* project type */} +
+ +
+ + + Please specify the primary purpose of the funds + +
+
+ + {/* short description */} +
+ +
+ +
+
+
+
{/* Submit */}
-