chore: remove and replace log with info
This commit is contained in:
@@ -66,7 +66,6 @@ const EditMessage: FC<Props> = ({ mid, cancelEdit }) => {
|
||||
useKey(
|
||||
"Shift",
|
||||
(e) => {
|
||||
console.log("shift", e.type);
|
||||
setShift(e.type == "keydown");
|
||||
},
|
||||
{ eventTypes: ["keydown", "keyup"], target: inputRef }
|
||||
@@ -75,7 +74,6 @@ const EditMessage: FC<Props> = ({ mid, cancelEdit }) => {
|
||||
useKey(
|
||||
"Escape",
|
||||
() => {
|
||||
console.log("cancel edit");
|
||||
cancelEdit();
|
||||
},
|
||||
{ eventTypes: ["keydown", "keyup"], target: inputRef }
|
||||
|
||||
@@ -89,8 +89,6 @@ const ForwardedMessage: FC<Props> = ({ context, to, from_uid, id }) => {
|
||||
);
|
||||
}
|
||||
}, [messages, context, to, from_uid]);
|
||||
|
||||
console.log("archive data", messages);
|
||||
if (!id) return null;
|
||||
|
||||
return forwards;
|
||||
|
||||
@@ -123,7 +123,6 @@ const ReactionDetails = ({
|
||||
names.length > 3
|
||||
? `${names.join(", ")} and ${names.length - 3} others reacted with`
|
||||
: `${names.join(", ")} reacted with`;
|
||||
console.log("eeee", emojiData);
|
||||
return (
|
||||
<StyledDetails className={index == 0 ? "first" : ""}>
|
||||
<div className="emoji">
|
||||
@@ -153,7 +152,6 @@ const Reaction: FC<Props> = ({ mid, reactions = null, readOnly = false }) => {
|
||||
const handleReact = (emoji: string) => {
|
||||
reactWithEmoji({ mid, action: emoji });
|
||||
};
|
||||
console.log("curr reactions", reactions);
|
||||
if (!reactions || Object.entries(reactions).length == 0) return null;
|
||||
return (
|
||||
<StyledWrapper className="reactions">
|
||||
|
||||
@@ -48,7 +48,6 @@ const ReactionPicker: FC<Props> = ({ mid, hidePicker }) => {
|
||||
};
|
||||
});
|
||||
const handleReact = (emoji: string) => {
|
||||
console.log("react", emoji);
|
||||
reactMessage({ mid, action: emoji });
|
||||
hidePicker();
|
||||
};
|
||||
|
||||
@@ -109,7 +109,6 @@ const renderContent = (data) => {
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
/(\s{1}\@[0-9]+\s{1})/g,
|
||||
(match, idx) => {
|
||||
console.log("match", match);
|
||||
const uid = match.trim().slice(1);
|
||||
return <Mention key={idx} uid={+uid} popover={false} />;
|
||||
}
|
||||
@@ -163,7 +162,6 @@ const Reply: FC<ReplyProps> = ({ mid, interactive = true }) => {
|
||||
msgEle.dataset.highlight = "true";
|
||||
msgEle.scrollIntoView({ behavior: "smooth", block: "center" });
|
||||
setTimeout(() => {
|
||||
console.log("scroll view", msgEle);
|
||||
msgEle.dataset.highlight = "false";
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,6 @@ const renderContent = ({
|
||||
)}
|
||||
>
|
||||
{reactStringReplace(content, /(\s{1}@[0-9]+\s{1})/g, (match, idx) => {
|
||||
console.log("match", match);
|
||||
const uid = match.trim().slice(1);
|
||||
return <Mention key={idx} uid={+uid} cid={to} />;
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user