issues
search
ShiftTreeApp
/
ShiftTree
ShiftTree app
MIT License
1
stars
1
forks
source link
Wired shift statuses for the current user to chip components
#156
Closed
AQUAiTE
closed
2 weeks ago
AQUAiTE
commented
2 weeks ago
Wrote the functions in the hooks to get the shift IDs of signed up for and assigned shifts
Stored hook API returns (to refetch upon changes) in a
useEffect()
Added an assigned indicator and passed a combination of both to the rendered component
The assigned indicator will always override the signed up indicator (haven't fully tested it, but this seemed to be the case which is what I wanted)
Currently uses the primary color for the assigned indicator, but should probably change (doesn't look too good on the shift card background)
useEffect()