Skip to content

Commit

Permalink
feat : added /${username}#create in elevateform
Browse files Browse the repository at this point in the history
  • Loading branch information
surajhub255 committed Oct 25, 2024
1 parent 90d904e commit 6aacd77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/app/[username]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/app/elevateform/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const ElevateForm = () => {
{isSubmitted && (
<div>
<p className="mb-4 mt-8">
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 <Link href={`/${username}`} className="text-blue-500 underline">create page</Link> 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 <Link href={`/${username}#create`} className="text-blue-500 underline">create page</Link> on your profile for further communication. Best of luck!
</p>
</div>
)}
Expand Down

0 comments on commit 6aacd77

Please sign in to comment.