Skip to content

Commit 116baff

Browse files
committed
🩹(frontend) on main pages do not display leading emoji as page icon
Following discussion on #1358 (comment)
1 parent 62e122b commit 116baff

File tree

1 file changed

+2
-7
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-management/components

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { css } from 'styled-components';
44

55
import { Box, Text } from '@/components';
66
import { useCunninghamTheme } from '@/cunningham';
7-
import { Doc, getEmojiAndTitle, useTrans } from '@/docs/doc-management';
7+
import { Doc, useTrans } from '@/docs/doc-management';
88
import { useResponsiveStore } from '@/stores';
99

1010
import PinnedDocumentIcon from '../assets/pinned-document.svg';
@@ -38,10 +38,6 @@ export const SimpleDocItem = ({
3838
const { isDesktop } = useResponsiveStore();
3939
const { untitledDocument } = useTrans();
4040

41-
const { emoji, titleWithoutEmoji: displayTitle } = getEmojiAndTitle(
42-
doc.title || untitledDocument,
43-
);
44-
4541
return (
4642
<Box
4743
$direction="row"
@@ -68,7 +64,6 @@ export const SimpleDocItem = ({
6864
/>
6965
) : (
7066
<DocIcon
71-
emoji={emoji}
7267
defaultIcon={
7368
<SimpleFileIcon
7469
aria-hidden="true"
@@ -88,7 +83,7 @@ export const SimpleDocItem = ({
8883
$css={ItemTextCss}
8984
data-testid="doc-title"
9085
>
91-
{displayTitle}
86+
{doc.title || untitledDocument}
9287
</Text>
9388
{(!isDesktop || showAccesses) && (
9489
<Box

0 commit comments

Comments
 (0)