Skip to content

Commit

Permalink
Fixes onClick prop function for DeleteLink component (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnadeluy authored Mar 25, 2024
1 parent 69d9128 commit 1e144d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DeleteLink/DeleteLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface DeleteLink {

const DeleteLink = ({ children, tabIndex, icon, handleDeleteUser }: DeleteLink) => {
return (
<a className={styles.deleteLinkWrapper} tabIndex={tabIndex ?? 0} onClick={() => handleDeleteUser}>
<a className={styles.deleteLinkWrapper} tabIndex={tabIndex ?? 0} onClick={() => handleDeleteUser()}>
{icon && <Trash2 size={22} />}
<span>{children}</span>
</a>
Expand Down

0 comments on commit 1e144d2

Please sign in to comment.