Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Donor History/DonationInformation #261

Open
peterchinh opened this issue Feb 25, 2025 · 0 comments
Open

Fix Donor History/DonationInformation #261

peterchinh opened this issue Feb 25, 2025 · 0 comments
Assignees

Comments

@peterchinh
Copy link
Contributor

After donating an item, you can view your item in the History tab. However, when you click on item, you get sent to the wrong route (Donor/DonationInfo/[slug]) instead of (Donor/History/DonationInfo/[slug]). Fix this issue in app/Donor/History/page.tsx.

Next, remove all the admin related functions in app/Donor/History/DonationInfo/[[...slug]]/page.tsx such as changing AdminNavbar to DonorNavbar, Removing the scheduling and receipt tabs, and remove the ability to change the donation status and notes (only make these display).

Also change the top of the function to the following:

Image

The donor's name is also undefined. To fetch the donor's name, create a backend api in userRotues to fetch a Clerk User, then create a frontend route in /api/user that makes a request to this api, and then use this function to fetch the Clerk User and access their full name in app/Donor/History/DonationInfo/[[...slug]]/page.tsx.

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

No branches or pull requests

2 participants