Skip to content

Conversation

@PinJinx
Copy link
Contributor

@PinJinx PinJinx commented Oct 11, 2025

Closes:
#40

Description:
This version of the PR currently adds the UI without any functionality that will be added.

Changes Made:
Updated Edit Profile with new UI screen and added basic logic that changes field for user first enrolling & for user updating his details.

Screenshots:
image

Additional Details:
nil

@vercel
Copy link

vercel bot commented Oct 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
home Ready Ready Preview Comment Nov 1, 2025 5:40pm

@netlify
Copy link

netlify bot commented Oct 11, 2025

Deploy Preview for zingy-speculoos-372a93 ready!

Name Link
🔨 Latest commit 22f740b
🔍 Latest deploy log https://app.netlify.com/projects/zingy-speculoos-372a93/deploys/690645e856e5fb0008d1df45
😎 Deploy Preview https://deploy-preview-43--zingy-speculoos-372a93.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@PinJinx PinJinx changed the title [OnGoing] Adding member details entry page Adding member details entry page Nov 1, 2025
});
};

useEffect(()=>{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do u want to fetch the member details again? Can't you use the safe data that was fetched for the view? It reduces a query to the backend, plus useEffect like this are not really standard in NextJS, its a good practice to fetch the data inside a server component (refer this)

setProfileData(member);
setIsLoading(false);
}
else console.log("Error Fetching User Data!");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use toast.error instead of console unless for debugging purposes

setProfileData(member);
setIsLoading(false);
}
else console.log("Error Fetching User Data!");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The page will just keep on loading if there is no member data. handle this as enrolment for now, just let them enter their details

htmlFor="profileImage"
className={`absolute bottom-0 right-0 bg-primaryYellow p-2 rounded-full cursor-pointer`}
>
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm supposing this is a placeholder image, u can actually use an icon from Lucid React for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants