Skip to content

Commit

Permalink
refactor: news feed update delete logic
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhrmo committed Oct 30, 2024
1 parent f71d231 commit 64c6b71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/common/editing/controls/EditControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const EditControls = (props: EditControlsProps) => {
);
};

// Styles for the menu icon button
// Edit Controls Styles
const menuIconButtonStyles = {
width: '32px',
height: '32px',
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/editing/controls/ResponseControl.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/components/newsFeed/NewsFeedContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 64c6b71

Please sign in to comment.