Skip to content

Commit b78550b

Browse files
committed
💄(frontend) visibility icon near title
It was decided to add a visibility icon near the title of the document in the grid view.
1 parent 5a23c97 commit b78550b

File tree

1 file changed

+2
-4
lines changed
  • src/frontend/apps/impress/src/features/docs/docs-grid/components

1 file changed

+2
-4
lines changed

src/frontend/apps/impress/src/features/docs/docs-grid/components/DocsGridItem.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export const DocsGridItem = ({ doc, dragMode = false }: DocsGridItemProps) => {
2727
const shareModal = useModal();
2828
const isPublic = doc.link_reach === LinkReach.PUBLIC;
2929
const isAuthenticated = doc.link_reach === LinkReach.AUTHENTICATED;
30-
31-
const showAccesses = isPublic || isAuthenticated;
30+
const isShared = isPublic || isAuthenticated;
3231

3332
const handleShareClick = () => {
3433
shareModal.open();
@@ -67,12 +66,11 @@ export const DocsGridItem = ({ doc, dragMode = false }: DocsGridItemProps) => {
6766
$direction="row"
6867
$align="center"
6968
$gap={spacingsTokens.xs}
70-
$flex={flexLeft}
7169
$padding={{ right: isDesktop ? 'md' : '3xs' }}
7270
$maxWidth="100%"
7371
>
7472
<SimpleDocItem isPinned={doc.is_favorite} doc={doc} />
75-
{showAccesses && (
73+
{isShared && (
7674
<Box
7775
$padding={{ top: !isDesktop ? '4xs' : undefined }}
7876
$css={

0 commit comments

Comments
 (0)