You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ChairNoteView and DelegateNoteView contain a lot of similar logic -- they're both almost the same component, just using slightly different information to determine who to send things to. This also means that any changes to the Notes views can require modification of two files, which is not ideal.
We should create a component called NoteView that both ChairNoteView and DelegateNoteView display on render. One way to implement this would be to take in an additional prop called is_chair, and to use some blocks of code if is_chair is true and some blocks of code if it is false.
The text was updated successfully, but these errors were encountered:
ChairNoteView
andDelegateNoteView
contain a lot of similar logic -- they're both almost the same component, just using slightly different information to determine who to send things to. This also means that any changes to the Notes views can require modification of two files, which is not ideal.We should create a component called
NoteView
that bothChairNoteView
andDelegateNoteView
display on render. One way to implement this would be to take in an additional prop calledis_chair
, and to use some blocks of code ifis_chair
is true and some blocks of code if it is false.The text was updated successfully, but these errors were encountered: