Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

deleting User Admin UI #11

@Petr-Hl

Description

@Petr-Hl

There is only small issue in this code src/admin/routes/users/action-menu.tsx

Needs to add async, otherwise it will delete user without waiting for the prompt:

const onDelete = async () => {
const confirmed = await prompt({
title: Deleting user ${user.email},
description: "Are you sure you want to delete this user?",
confirmText: "Delete",
});

if (confirmed) {
  mutate();
}

};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions