-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Super admin event deletion #163
base: dev
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
setShowConfirmation(false); | ||
}; | ||
|
||
const { executeAsync: executeDeleteAction } = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you choose to use executeAsync
instead of just execute?
|
||
{/* Delete confirmation */} | ||
{showConfirmation && ( | ||
<div className="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a better way to do this. Use an AlertDialog which will handle all of this for you. See the code here. The component itself is on line 135 of that same file and the source code for it can be found by command and clicking on the name of the component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start, but this needs some work before merging. Message me if you have any questions on comments I gave
added functionallity for admins to delete events while also organizing the actions into a drop down menu