refactor: unify chat context type

This commit is contained in:
Tristan Yang
2023-05-15 13:26:55 +08:00
parent c6edf3e8b1
commit 110b0891ad
30 changed files with 79 additions and 51 deletions
+2 -1
View File
@@ -11,9 +11,10 @@ import IconClose from "../../../assets/icons/close.circle.svg";
import ForwardModal from "../../../common/component/ForwardModal";
import DeleteMessageConfirmModal from "../../../common/component/DeleteMessageConfirm";
import { useAppDispatch, useAppSelector } from "../../../app/store";
import { ChatContext } from "../../../types/common";
type Props = {
context: "user" | "channel";
context: ChatContext;
id: number;
};
const Operations: FC<Props> = ({ context, id }) => {