From a215d0b026ff5cbdcb346f527b6def11f939a1b6 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 20:37:40 +0200 Subject: [PATCH] refactor: remove lock icon from individual bookmarks - Private bookmarks are now grouped in 'Private Bookmarks' section - No need for redundant lock icon on each individual bookmark - Cleaner UI with less visual clutter - Removed faUserLock import and conditional rendering from all three views --- src/components/BookmarkViews/CardView.tsx | 5 +---- src/components/BookmarkViews/CompactView.tsx | 4 ---- src/components/BookmarkViews/LargeView.tsx | 4 ---- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/components/BookmarkViews/CardView.tsx b/src/components/BookmarkViews/CardView.tsx index d73dde29..f8dd673f 100644 --- a/src/components/BookmarkViews/CardView.tsx +++ b/src/components/BookmarkViews/CardView.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react' import { Link } from 'react-router-dom' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faUserLock, faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons' +import { faChevronDown, faChevronUp } from '@fortawesome/free-solid-svg-icons' import { IconDefinition } from '@fortawesome/fontawesome-svg-core' import { IndividualBookmark } from '../../types/bookmarks' import { formatDate, renderParsedContent } from '../../utils/bookmarkUtils' @@ -91,9 +91,6 @@ export const CardView: React.FC = ({
- {bookmark.isPrivate && ( - - )} {eventNevent ? ( diff --git a/src/components/BookmarkViews/CompactView.tsx b/src/components/BookmarkViews/CompactView.tsx index 46e06240..19c7aff6 100644 --- a/src/components/BookmarkViews/CompactView.tsx +++ b/src/components/BookmarkViews/CompactView.tsx @@ -1,6 +1,5 @@ import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faUserLock } from '@fortawesome/free-solid-svg-icons' import { IconDefinition } from '@fortawesome/fontawesome-svg-core' import { IndividualBookmark } from '../../types/bookmarks' import { formatDateCompact } from '../../utils/bookmarkUtils' @@ -54,9 +53,6 @@ export const CompactView: React.FC = ({ > - {bookmark.isPrivate && ( - - )} {displayText && (
diff --git a/src/components/BookmarkViews/LargeView.tsx b/src/components/BookmarkViews/LargeView.tsx index 106b85a0..6efbc3da 100644 --- a/src/components/BookmarkViews/LargeView.tsx +++ b/src/components/BookmarkViews/LargeView.tsx @@ -1,7 +1,6 @@ import React from 'react' import { Link } from 'react-router-dom' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faUserLock } from '@fortawesome/free-solid-svg-icons' import { IconDefinition } from '@fortawesome/fontawesome-svg-core' import { IndividualBookmark } from '../../types/bookmarks' import { formatDate } from '../../utils/bookmarkUtils' @@ -96,9 +95,6 @@ export const LargeView: React.FC = ({
- {bookmark.isPrivate && ( - - )}