chore: update pin modal text

This commit is contained in:
zerosoul
2022-05-25 14:08:20 +08:00
parent d649c46c21
commit 74ea8032d6
2 changed files with 3 additions and 2 deletions
@@ -24,7 +24,7 @@ import toast from "react-hot-toast";
export default function PinMessageModal({ closeModal, mid = 0, gid = 0 }) {
// const dispatch = useDispatch();
const { pinMessage, isPining, isSuccess } = usePinMessage(gid);
const { channel, pinMessage, isPining, isSuccess } = usePinMessage(gid);
const handlePin = () => {
pinMessage(mid);
};
@@ -51,7 +51,7 @@ export default function PinMessageModal({ closeModal, mid = 0, gid = 0 }) {
</>
}
title="Pin It"
description="You sure you want to pin this message to #gerenal?"
description={`Do you want to pin this message to #${channel?.name}`}
>
<PreviewMessage mid={mid} />
</StyledPinModal>