Skip to content

Commit

Permalink
Merge pull request #880 from vijaysingh2219/fix/pin-functionality
Browse files Browse the repository at this point in the history
fix: pin functionality issue in the comment dropdown menu
  • Loading branch information
siinghd authored Aug 14, 2024
2 parents 139ec0b + 4933006 commit 3747c41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/Copy-to-clipbord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const CopyToClipboard = ({
};

return (
<div>
<button onClick={handleCopyClick}>
<div className="w-full">
<button className="w-full" onClick={handleCopyClick}>
<div className="flex items-center gap-x-2">
Copy <CopyIcon size={15} />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/comment/CommentApproveForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const CommentApproveForm = ({
});
};
return (
<form onSubmit={handleFormSubmit}>
<button type="submit" disabled={isLoading}>
<form className="w-full" onSubmit={handleFormSubmit}>
<button className="w-full" type="submit" disabled={isLoading}>
<div className="flex items-center gap-1">
Approve Chapters <CheckIcon className="h-4 w-4" />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/comment/CommentDeleteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const CommentDeleteForm = ({ commentId }: { commentId: number }) => {
});
};
return (
<form onSubmit={handleFormSubmit}>
<button type="submit" disabled={isLoading}>
<form className="w-full" onSubmit={handleFormSubmit}>
<button className="w-full" type="submit" disabled={isLoading}>
<div className="flex items-center gap-x-2">
Delete <Trash2Icon className="h-4 w-4" />
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/comment/CommentPinForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const CommentPinForm = ({
});
};
return (
<form onSubmit={handleFormSubmit}>
<button type="submit" disabled={isLoading}>
<form className="w-full" onSubmit={handleFormSubmit}>
<button className="w-full" type="submit" disabled={isLoading}>
<div className="flex items-center gap-1">
Pin <PinIcon className="h-4 w-4" />
</div>
Expand Down

0 comments on commit 3747c41

Please sign in to comment.