Skip to content

Commit 681138e

Browse files
olaurendeauAntoLC
authored andcommitted
fixup! ✨(frontend) add an EmojiPicker in the document tree
1 parent ac9fc8b commit 681138e

File tree

1 file changed

+4
-0
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-management/components

1 file changed

+4
-0
lines changed

src/frontend/apps/impress/src/features/docs/doc-management/components/DocIcon.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export const DocIcon = ({
3737
left: number;
3838
}>({ top: 0, left: 0 });
3939

40+
if (!emojiPicker && !emoji) {
41+
return defaultIcon;
42+
}
43+
4044
const toggleEmojiPicker = (e: React.MouseEvent) => {
4145
if (emojiPicker) {
4246
e.stopPropagation();

0 commit comments

Comments
 (0)