Skip to content

Commit

Permalink
function name renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
olatunde1998 committed Jan 14, 2025
1 parent 8be7eb2 commit 94f1d7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/admin-components/UsersDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function UsersDetails({ token, userId }: UsersDetailsProps) {
});

// Delete User Request Logic
const handleDeleteUserRequest = async () => {
const deleteUserHandler = async () => {
setIsDeleting(true);
try {
const response = await DeleteUserRequest(userId, token);
Expand Down Expand Up @@ -203,12 +203,12 @@ export default function UsersDetails({ token, userId }: UsersDetailsProps) {
{/* === Submit Button === */}
<div className="flex justify-between gap-6">
<button
onClick={() => handleDeleteUserRequest()}
onClick={() => deleteUserHandler()}
disabled={isDeleting}
className="w-[150px] mt-10 px-1.5 py-1.5 md:px-3.5 md:py-4 font-light text-white shadow-sm bg-gradient-to-r from-[#D92D20] to-[#F97316]"
>
<span className="text-sm md:text-base">
{isDeleting ? "Deleting...." : "Delete Request"}
{isDeleting ? "Deleting...." : "Delete User"}
</span>
</button>
</div>
Expand Down

0 comments on commit 94f1d7b

Please sign in to comment.