mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: project emoji icon improvement (#3837)
This commit is contained in:
parent
9326fb0762
commit
62693abb09
@ -53,7 +53,7 @@ const EmojiIconPicker: React.FC<Props> = (props) => {
|
||||
<Popover.Button
|
||||
ref={buttonRef}
|
||||
onClick={() => setIsOpen((prev) => !prev)}
|
||||
className="outline-none"
|
||||
className="outline-none flex items-center justify-center"
|
||||
disabled={disabled}
|
||||
>
|
||||
{label}
|
||||
|
@ -30,7 +30,7 @@ export const renderEmoji = (
|
||||
|
||||
if (typeof emoji === "object")
|
||||
return (
|
||||
<span style={{ color: emoji.color }} className="material-symbols-rounded !text-sm">
|
||||
<span style={{ fontSize: "16px", color: emoji.color }} className="material-symbols-rounded">
|
||||
{emoji.name}
|
||||
</span>
|
||||
);
|
||||
@ -41,16 +41,13 @@ export const groupReactions: (reactions: any[], key: string) => { [key: string]:
|
||||
reactions: any,
|
||||
key: string
|
||||
) => {
|
||||
const groupedReactions = reactions.reduce(
|
||||
(acc: any, reaction: any) => {
|
||||
if (!acc[reaction[key]]) {
|
||||
acc[reaction[key]] = [];
|
||||
}
|
||||
acc[reaction[key]].push(reaction);
|
||||
return acc;
|
||||
},
|
||||
{} as { [key: string]: any[] }
|
||||
);
|
||||
const groupedReactions = reactions.reduce((acc: any, reaction: any) => {
|
||||
if (!acc[reaction[key]]) {
|
||||
acc[reaction[key]] = [];
|
||||
}
|
||||
acc[reaction[key]].push(reaction);
|
||||
return acc;
|
||||
}, {} as { [key: string]: any[] });
|
||||
|
||||
return groupedReactions;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user