-
Notifications
You must be signed in to change notification settings - Fork 1
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
7531/outstanding commitments/special needs giving #849
7531/outstanding commitments/special needs giving #849
Conversation
Created new clean branch from 7531-outstanding-commitments/special-needs-giving |
d9535c1
to
7d8de96
Compare
This pull request is automatically being deployed by Amplify Hosting (learn more). |
7d8de96
to
e04da6f
Compare
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 think the tests will fail until you make those two tweaks.
src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.test.tsx
Outdated
Show resolved
Hide resolved
src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.test.tsx
Outdated
Show resolved
Hide resolved
Previous review history is in #834. |
2447464
to
ad7bfcc
Compare
src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.tsx
Outdated
Show resolved
Hide resolved
src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.tsx
Outdated
Show resolved
Hide resolved
src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.test.tsx
Outdated
Show resolved
Hide resolved
1e84519
to
de1a2cc
Compare
src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.tsx
Outdated
Show resolved
Hide resolved
return theme.palette.statusDanger.main; | ||
} else if (dateString.includes('month')) { | ||
return theme.palette.statusWarning.main; | ||
const checkDueDate = (expectedDate: string | null | undefined): string[] => { |
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.
Great work! The only thing I'd change is having this return an object with a color
property and an overdue
property. Then when it is being used it will be a lot harder to accidentally mix them up.
FYI, the type you would want here is [string, string]
because it is an array with exactly two elements. string[]
is an array with an unknown number of elements.
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.
Good call, this function should be updated to return an object now. And good to know the type, I wasn't entirely sure on that one.
e189e84
to
d426c49
Compare
d426c49
to
e8669cb
Compare
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 thought this day would never come hah. |
🎉🎉🎉 |
Description
Checklist: