-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: initial donor dropoff view #32
Conversation
frontend/src/components/pages/Dropoff/components/DropoffCard.tsx
Outdated
Show resolved
Hide resolved
16a8fc5
to
8a3d2b0
Compare
@@ -100,112 +99,109 @@ const AccountDetails = ({ | |||
} | |||
|
|||
return ( | |||
<> | |||
<Header /> |
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 am guessing this header would be added in Anne's PR.
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.
yeah I made a comment in #37 so just depends what gets merged first
frontend/src/components/pages/Dropoff/components/DropoffCard.tsx
Outdated
Show resolved
Hide resolved
* feat: add getDonorByUserID service * fix: get donor service
461d633
to
5130ad6
Compare
borderRadius="8px" | ||
> | ||
<Box pl="6" pr="6" pb="6" pt="4"> | ||
<HStack spacing="10"> |
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 believe if you touch anywhere in the card, it should also lead to the edit page, so I guess add the onClick
function for box as well?
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.
Are you sure? What's the purpose of the menu button for edit then?
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.
Made it clickable.
frontend/src/components/pages/Dashboard/components/DropoffCard.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/pages/Dashboard/EditDashboardSchedule.tsx
Outdated
Show resolved
Hide resolved
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.
Works for me!! Great Job!!
Notion ticket link
Donor Dropoff View
Implementation description
<Header/>
component to be mounted inApp.tsx
to avoid rerenders/dropoff
and the donor schedule details at/dropoff/:id?donorId=
getDonorByUserId
endpoint: feat: addgetDonorByUserId
service #38https://user-images.githubusercontent.com/19617248/141862607-29e54fe7-b34d-44c8-b687-e406749a631e.mp4



6ed9983e-1e58-497d-9ca6-d137bef2cb92.mp4
Steps to test
POST
a few schedules in order to see it populated, test out buttons:What should reviewers focus on?