-
Notifications
You must be signed in to change notification settings - Fork 4
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
43 develop detailed view page for a donated item #59
43 develop detailed view page for a donated item #59
Conversation
…al-assist into 43-develop-detailed-view-page-for-a-donated-item
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the look of the new page! Really good job designing it!
program: true, // Include all program details | ||
statuses: { | ||
orderBy: { | ||
dateModified: 'asc' // Ensure they are ordered chronologically |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be an odd interaction where it sometimes gives updates that it should not
@@ -0,0 +1,30 @@ | |||
import prisma from '../prismaClient'; | |||
|
|||
// export async function validateDonatedItem(donatedItemId: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to remove commented out code before you submit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Joseph
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saikiran0405 please remove the unwanted comments
@@ -0,0 +1,30 @@ | |||
import prisma from '../prismaClient'; | |||
|
|||
// export async function validateDonatedItem(donatedItemId: number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Joseph
…al-assist into 43-develop-detailed-view-page-for-a-donated-item
**Fixes #43 **
What was changed?
Why was it changed?
How was it changed?
To implement this feature, I added two new files: donatedItemDetails.tsx and donatedItemDetails.css. The donatedItemDetails.tsx file contains the component that displays detailed information about a specific donated item when accessed by ID, while donatedItemDetails.css styles the component for an organized and user-friendly layout.
Additionally, I refactored App.js to include routing for the new detailed view page and updated donatedItemRoutes.ts to handle requests for individual donated items by ID. These changes enable users to click on a Donated Item ID in the list and be redirected to a dedicated page showing detailed information for that specific item.
Screenshots that show the changes (if applicable):