Skip to content

Commit

Permalink
removed toast "comment added" because we already see new comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalabbad committed Aug 27, 2024
1 parent 7107695 commit 3ae9963
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,6 @@ export const ArtifactContentDiff = (props: any) => {
},
});

toast(<Alert type={ALERT_TYPES.SUCCESS} message={"Comment added"} />);

if (refetch) {
refetch();
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/app/src/screens/diff/file-diff/file-content-diff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ export const FileContentDiff = (props: any) => {
},
});

toast(<Alert type={ALERT_TYPES.SUCCESS} message={"Comment added"} />);

if (refetch) {
refetch();
}
Expand Down
4 changes: 0 additions & 4 deletions frontend/app/src/screens/diff/node-diff/comments.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AddComment } from "@/components/conversations/add-comment";
import { Thread } from "@/components/conversations/thread";
import { ALERT_TYPES, Alert } from "@/components/ui/alert";
import {
PROPOSED_CHANGES_OBJECT_THREAD_OBJECT,
PROPOSED_CHANGES_THREAD_COMMENT_OBJECT,
Expand All @@ -22,7 +21,6 @@ import { useAtom } from "jotai";
import { useAtomValue } from "jotai/index";
import { useContext } from "react";
import { useParams } from "react-router-dom";
import { toast } from "react-toastify";
import { DiffContext } from ".";

type tDiffComments = {
Expand Down Expand Up @@ -153,8 +151,6 @@ export const DiffComments = (props: tDiffComments) => {
},
});

toast(<Alert type={ALERT_TYPES.SUCCESS} message={"Comment added"} />);

handleRefetch();
} catch (error: any) {
if (threadId) {
Expand Down
4 changes: 0 additions & 4 deletions frontend/app/src/screens/proposed-changes/conversations.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { AddComment } from "@/components/conversations/add-comment";
import { Thread } from "@/components/conversations/thread";
import { Alert, ALERT_TYPES } from "@/components/ui/alert";
import {
ACCOUNT_OBJECT,
PROPOSED_CHANGES_CHANGE_THREAD_OBJECT,
Expand All @@ -23,7 +22,6 @@ import { formatISO } from "date-fns";
import { useAtomValue } from "jotai/index";
import { HTMLAttributes, useRef } from "react";
import { useParams } from "react-router-dom";
import { toast } from "react-toastify";
import { FormRef } from "@/components/ui/form";
import { Card } from "@/components/ui/card";
import { classNames } from "@/utils/common";
Expand Down Expand Up @@ -138,8 +136,6 @@ export const Conversations = ({ className, ...props }: HTMLAttributes<HTMLDivEle
},
});

toast(<Alert type={ALERT_TYPES.SUCCESS} message={"Comment added"} />);

formRef.current?.reset();
await refetch();
formRef.current?.reset();
Expand Down

0 comments on commit 3ae9963

Please sign in to comment.