Skip to content
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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

spiderCSman
Copy link
Collaborator

added functionallity for admins to delete events while also organizing the actions into a drop down menu

Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hack-kit-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 1:05am

setShowConfirmation(false);
};

const { executeAsync: executeDeleteAction } =
Copy link
Collaborator

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">
Copy link
Collaborator

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.

Copy link
Collaborator

@christianhelp christianhelp left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants