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
When users register to gardenz, they select their preferred gardenz from a drop-down list, including admins and this does not make sense, because admins should be able to manage any garden they want.
The News page component in client/views/admin/News/AddNews/AddNews.jsx calls a helper function called addNews that reads the gardenId from the user object from global state. Instead of reading it form global state, we're going to add a drop-down list in the client/subcomponents/News/NewsForm/NewsForm.jsx to show all gardens and let the administrator select a garden.
Basically we want update that form so that admins write the title, content, upload photos for a specific garden.
Make the necessary changes in client/views/admin/News/AddNews/addNewsHelper.js to accept the gardenId as a parameter and not reading it from global state.
Write tests for helpers, components, etc
The text was updated successfully, but these errors were encountered:
When users register to gardenz, they select their preferred gardenz from a drop-down list, including admins and this does not make sense, because admins should be able to manage any garden they want.
The News page component in
client/views/admin/News/AddNews/AddNews.jsx
calls a helper function calledaddNews
that reads thegardenId
from theuser
object from global state. Instead of reading it form global state, we're going to add a drop-down list in theclient/subcomponents/News/NewsForm/NewsForm.jsx
to show all gardens and let the administrator select a garden.Basically we want update that form so that admins write the title, content, upload photos for a specific garden.
client/views/admin/News/AddNews/addNewsHelper.js
to accept thegardenId
as a parameter and not reading it from global state.The text was updated successfully, but these errors were encountered: