Skip to content

Commit

Permalink
Remove comment testing UI
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielrindlaub committed Dec 19, 2023
1 parent 9a78da1 commit fd6bf1b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/features/loupe/LoupeDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,6 @@ const LoupeDropdown = ({ image }) => {
dispatch(setDeleteImagesAlertOpen(true));
};

// NOTE: just testing image.comments CRUD operations
const handleCreateCommentItemClick = () => {
const comment = 'TEST COMMENT 4';
dispatch(editComment('create', { comment, imageId: image._id }));
};

const handleUpdateCommentItemClick = () => {
const _id = '6582030e05256f8bff29ba43';
const comment = 'UPDATED COMMENT 4';
dispatch(editComment('update', { comment, id: _id, imageId: image._id }));
};

const handleDeleteCommentItemClick = () => {
const _id = '6582030e05256f8bff29ba43';
dispatch(editComment('delete', { id: _id, imageId: image._id }));
};

return (
<DropdownMenu>
<StyledDropdownMenuTrigger asChild>
Expand All @@ -55,15 +38,6 @@ const LoupeDropdown = ({ image }) => {
<DropdownMenuItem onClick={handleDeleteImageItemClick}>
Delete Image
</DropdownMenuItem>
<DropdownMenuItem onClick={handleCreateCommentItemClick}>
Create Comment
</DropdownMenuItem>
<DropdownMenuItem onClick={handleUpdateCommentItemClick}>
Update Comment
</DropdownMenuItem>
<DropdownMenuItem onClick={handleDeleteCommentItemClick}>
Delete Comment
</DropdownMenuItem>
<DropdownMenuArrow offset={12} />
</DropdownMenuContent>

Expand Down

0 comments on commit fd6bf1b

Please sign in to comment.