From 6aacd7776bf8ae143f71989c9e69fedafc8eb6e3 Mon Sep 17 00:00:00 2001 From: Suraj Mahto Date: Sat, 26 Oct 2024 00:06:07 +0530 Subject: [PATCH] feat : added `/${username}#create` in elevateform --- src/app/[username]/page.js | 8 ++++++++ src/app/elevateform/page.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/[username]/page.js b/src/app/[username]/page.js index 5c5a583..1e0be97 100644 --- a/src/app/[username]/page.js +++ b/src/app/[username]/page.js @@ -51,6 +51,14 @@ function HomePage({ params }) { setShowForm(true) }; + useEffect(() => { + // Check if the URL has a hash and set the active section + if (window.location.hash) { + const section = window.location.hash.substring(1); + setActiveSection(section); + } +}, []); + useEffect(() => { const fetchNFTs = async () => { try { diff --git a/src/app/elevateform/page.js b/src/app/elevateform/page.js index 2d8a9f7..a70a197 100644 --- a/src/app/elevateform/page.js +++ b/src/app/elevateform/page.js @@ -189,7 +189,7 @@ const ElevateForm = () => { {isSubmitted && (

- Thank you for your interest in the MyriadFlow Elevate Program! We look forward to reviewing your application. Please keep checking your provided email address, and the create page on your profile for further communication. Best of luck! + Thank you for your interest in the MyriadFlow Elevate Program! We look forward to reviewing your application. Please keep checking your provided email address, and the create page on your profile for further communication. Best of luck!

)}