Skip to content

Commit

Permalink
refactor: post context menu removing post label (dailydotdev#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshanzel authored Apr 12, 2023
1 parent 838be0a commit e12a361
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/shared/src/components/PostOptionsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default function PostOptionsMenu({
if (onConfirmDeletePost) {
postOptions.push({
icon: <MenuIcon Icon={TrashIcon} />,
text: 'Remove',
text: 'Delete post',
action: onConfirmDeletePost,
});
}
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/src/components/post/PostComments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ export function PostComments({
parentId: string | null,
) => {
const options: PromptOptions = {
title: 'Delete comment',
title: 'Delete comment?',
description:
'Are you sure you want to delete your comment? This action cannot be undone.',
okButton: {
title: 'Delete',
className: 'btn-primary-ketchup',
className: 'btn-primary-cabbage',
},
};
if (await showPrompt(options)) {
Expand Down
3 changes: 2 additions & 1 deletion packages/shared/src/hooks/usePostMenuActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ interface UsePostMenuActionsProps {

const deletePromptOptions: PromptOptions = {
title: 'Delete post?',
description: 'Are you sure you want to delete this post?',
description:
'Are you sure you want to delete this post? This action cannot be undone.',
okButton: {
title: 'Delete',
className: 'btn-primary-cabbage',
Expand Down

0 comments on commit e12a361

Please sign in to comment.