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
My generically-typed modular AddProfile component is too complex and over-engineered than what we need for the Legacy Project's webpage (it was fun while it lasted, y'all). That being said, I'm nuking the old AddProfile component and transitioning to a much simpler AddSenior page that's less parameterized. This ticket is for me! (Skylar)
Kill your baby AddProfile and transition to using just the singular add-senior.tsx page for your profile. When mapping over the input boxes, create a separate component for the dropdown s
Right now, setProfileData only sets the value of the selectName field (event.target.name) to the new value provided (event.target.value). We want to accumulate values chosen in the dropdown, so that setProfileData adds a new value to the input box, and doesn't replace it.
Modify components/addProfile/form.tsx at line 31 so that it accumulates a list of values, rather than replacing them on every call of handleSelected.
Furthermore, there's a bug in the profile form where clicking on any input box causes the dropdown to pop up.
Fix this bug, so that the dropdown only pops up on selection of its input box. This requires refactoring the component such that this specific input box accumulates a list of Student models: displaying their names, while keeping track of their IDs so that these can be compiled into a list on submission to create the Senior model.
The text was updated successfully, but these errors were encountered:
🎯 due Monday, April 8th
My generically-typed modular
AddProfile
component is too complex and over-engineered than what we need for the Legacy Project's webpage (it was fun while it lasted, y'all). That being said, I'm nuking the oldAddProfile
component and transitioning to a much simplerAddSenior
page that's less parameterized. This ticket is for me! (Skylar)AddProfile
and transition to using just the singularadd-senior.tsx
page for your profile. When mapping over the input boxes, create a separate component for the dropdown sRight now,
setProfileData
only sets the value of theselectName
field (event.target.name
) to the new value provided (event.target.value
). We want to accumulate values chosen in the dropdown, so thatsetProfileData
adds a new value to the input box, and doesn't replace it.components/addProfile/form.tsx
at line31
so that it accumulates a list of values, rather than replacing them on every call ofhandleSelected
.Furthermore, there's a bug in the profile form where clicking on any input box causes the dropdown to pop up.
The text was updated successfully, but these errors were encountered: