From 64c6b71056fca5afa19e46da977aab965b2d9ac2 Mon Sep 17 00:00:00 2001 From: "s.hrmo" Date: Wed, 30 Oct 2024 16:27:34 +0100 Subject: [PATCH] refactor: news feed update delete logic --- app/components/common/editing/controls/EditControls.tsx | 2 +- app/components/common/editing/controls/ResponseControl.tsx | 2 +- app/components/newsFeed/NewsFeedContainer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/common/editing/controls/EditControls.tsx b/app/components/common/editing/controls/EditControls.tsx index e955192f..4165d27c 100644 --- a/app/components/common/editing/controls/EditControls.tsx +++ b/app/components/common/editing/controls/EditControls.tsx @@ -115,7 +115,7 @@ export const EditControls = (props: EditControlsProps) => { ); }; -// Styles for the menu icon button +// Edit Controls Styles const menuIconButtonStyles = { width: '32px', height: '32px', diff --git a/app/components/common/editing/controls/ResponseControl.tsx b/app/components/common/editing/controls/ResponseControl.tsx index d0a7e013..2a282f63 100644 --- a/app/components/common/editing/controls/ResponseControl.tsx +++ b/app/components/common/editing/controls/ResponseControl.tsx @@ -1,6 +1,6 @@ import Button from '@mui/material/Button'; -import ReplyIcon from '@/components/icons/ReplyIcon'; // Your custom ReplyIcon +import ReplyIcon from '@/components/icons/ReplyIcon'; interface ResponseControlsProps { onResponse: () => void; diff --git a/app/components/newsFeed/NewsFeedContainer.tsx b/app/components/newsFeed/NewsFeedContainer.tsx index 9843689c..d04f9e37 100644 --- a/app/components/newsFeed/NewsFeedContainer.tsx +++ b/app/components/newsFeed/NewsFeedContainer.tsx @@ -11,7 +11,7 @@ import Typography from '@mui/material/Typography'; import { useNewsFeed } from '@/app/contexts/news-feed-context'; import { Option } from '@/common/formTypes'; import { NewsFeedEntry, ObjectType, Post, ProjectUpdate } from '@/common/types'; -import { DiscardAddPostDialog } from '@/components/common/editing/DiscardAddPostDialog'; // Import the discard dialog +import { DiscardAddPostDialog } from '@/components/common/editing/DiscardAddPostDialog'; import { UnsavedEditingChangesDialog } from '@/components/common/editing/UnsavedChangesDialog'; import InteractionButton, { interactionButtonStyles, InteractionType } from '@/components/common/InteractionButton'; import SecondaryIconButton from '@/components/common/SecondaryIconButton';