refactor: downgrade emoji lib and rename reaction picker

This commit is contained in:
zerosoul
2022-05-06 21:26:28 +08:00
parent 66215e6c4a
commit 4729bf2ee4
7 changed files with 297 additions and 271 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import styled from "styled-components";
import Tippy from "@tippyjs/react";
import { hideAll } from "tippy.js";
import Emoji from "../Emoji";
import EmojiPicker from "./EmojiPicker";
import ReactionPicker from "./ReactionPicker";
import Tooltip from "../Tooltip";
import { useReactMessageMutation } from "../../../app/services/message";
// import { Emojis } from "../../../app/config";
@@ -105,7 +105,7 @@ export default function Reaction({ mid, reactions = null }) {
interactive
placement="right-start"
trigger="click"
content={<EmojiPicker mid={mid} hidePicker={hideAll} />}
content={<ReactionPicker mid={mid} hidePicker={hideAll} />}
>
<button className="add"></button>
</Tippy>