Closed notbaopham closed 5 months ago
added
FetchStatusProp
RelinquishAdminModalProps
RelinquishAdminModal.tsx
relinquish-admin.ts
Obviously, MongoDB adminIDs array will remove the senderID accordingly (make sure to have your MongoDB Compass open to the side to monitor the change
adminIDs
senderID
added
a new type ofFetchStatusProp
-RelinquishAdminModalProps
to facilitate the new modal additionadded
a new component -RelinquishAdminModal.tsx
that renders a button (see screenshot) that will trigger a modal on clickadded
new API hookrelinquish-admin.ts
to facilitate communication with MongoDB to delete the sender's IDButton that follows the theme of the left sidebar
Covering all possible error messages that can happen when the user interacts with the Modal
On successful delete
Obviously, MongoDB
adminIDs
array will remove thesenderID
accordingly (make sure to have your MongoDB Compass open to the side to monitor the change