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
Go to /admin/dashboard/blogs. If a post is not published that is status is 'draft', we want an icon near that status in table which can trigger update the post status to published .
Tasks
Backend
Create a PATCH endpoint /api/admin/post/[id] which should update the status of post to 'published'
Frontend
Add a button with icon near status if it is 'draft' , icon should be from 'react-icons/fa'. onclick it should call the patch endpoint with status:'pubished' . and then refetch the data in table list view
The text was updated successfully, but these errors were encountered:
Go to
/admin/dashboard/blogs
. If a post is not published that is status is 'draft', we want an icon near that status in table which can trigger update the post status to published .Tasks
Backend
Create a PATCH endpoint /api/admin/post/[id] which should update the status of post to 'published'
Frontend
Add a button with icon near status if it is 'draft' , icon should be from 'react-icons/fa'. onclick it should call the patch endpoint with status:'pubished' . and then refetch the data in table list view
The text was updated successfully, but these errors were encountered: