From 75d4fce8ec22a1f1ffd37534693af1948f61a593 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Fri, 24 Nov 2023 08:39:55 -0500 Subject: [PATCH] removed extra classNames --- components/CollectionCard.tsx | 4 +- components/Dropdown.tsx | 2 +- components/FilterSearchDropdown.tsx | 4 +- components/LinkCard.tsx | 8 ++-- components/LinkPreview.tsx | 6 +-- components/LinkSidebar.tsx | 12 ++---- .../Modal/Collection/CollectionInfo.tsx | 8 ++-- .../Modal/Collection/DeleteCollection.tsx | 8 ++-- .../Modal/Collection/TeamManagement.tsx | 26 +++++------- components/Modal/Collection/ViewTeam.tsx | 8 +--- components/Modal/Collection/index.tsx | 2 +- components/Modal/Link/AddOrEditLink.tsx | 12 +++--- components/Modal/Link/PreservedFormats.tsx | 8 ++-- components/Navbar.tsx | 2 +- components/NoLinksFound.tsx | 4 +- components/PublicPage/PublicLinkCard.tsx | 2 +- components/RadioButton.tsx | 4 +- components/RequiredBadge.tsx | 11 ----- components/SettingsSidebar.tsx | 40 +++++-------------- components/Sidebar.tsx | 24 +++-------- components/SortDropdown.tsx | 4 +- layouts/CenteredForm.tsx | 2 +- pages/choose-username.tsx | 6 +-- pages/collections/[id].tsx | 4 +- pages/collections/index.tsx | 16 +++----- pages/confirmation.tsx | 2 +- pages/dashboard.tsx | 36 ++++++----------- pages/forgot.tsx | 13 ++---- pages/links/[id].tsx | 8 ++-- pages/links/index.tsx | 8 +--- pages/links/pinned.tsx | 10 ++--- pages/login.tsx | 13 ++---- pages/public/links/[id].tsx | 8 ++-- pages/register.tsx | 25 ++++-------- pages/search.tsx | 4 +- pages/settings/account.tsx | 26 +++++------- pages/settings/appearance.tsx | 4 +- pages/settings/billing.tsx | 4 +- pages/settings/delete.tsx | 6 +-- pages/settings/password.tsx | 4 +- pages/subscribe.tsx | 4 +- pages/tags/[id].tsx | 4 +- 42 files changed, 137 insertions(+), 269 deletions(-) delete mode 100644 components/RequiredBadge.tsx diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index d9aebfd..2699705 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -66,7 +66,7 @@ export default function CollectionCard({ collection, className }: Props) { href={`/collections/${collection.id}`} className="flex flex-col gap-2 justify-between min-h-[12rem] h-full select-none p-5" > -

+

{collection.name}

@@ -90,7 +90,7 @@ export default function CollectionCard({ collection, className }: Props) { ) : null}
-
+
{collection.isPublic ? (
-

{e.name}

+

{e.name}

); diff --git a/components/FilterSearchDropdown.tsx b/components/FilterSearchDropdown.tsx index 90648e0..be39585 100644 --- a/components/FilterSearchDropdown.tsx +++ b/components/FilterSearchDropdown.tsx @@ -27,9 +27,7 @@ export default function FilterSearchDropdown({ }} className="absolute top-8 right-0 border border-sky-100 dark:border-neutral-700 shadow-md bg-gray-50 dark:bg-neutral-800 rounded-md p-2 z-20 w-40" > -

- Filter by -

+

Filter by

{count + 1}

-

+

{unescapeString(link.name || link.description)}

@@ -204,9 +204,7 @@ export default function LinkCard({ link, count, className }: Props) { className="w-4 h-4 mt-1 drop-shadow" style={{ color: collection?.color }} /> -

- {collection?.name} -

+

{collection?.name}

{/* {link.tags[0] ? ( @@ -219,7 +217,7 @@ export default function LinkCard({ link, count, className }: Props) { onClick={(e) => { e.stopPropagation(); }} - className="px-2 bg-sky-200 text-black dark:text-white dark:bg-sky-900 text-xs rounded-3xl cursor-pointer hover:opacity-60 duration-100 truncate max-w-[19rem]" + className="px-2 bg-sky-200 dark:bg-sky-900 text-xs rounded-3xl cursor-pointer hover:opacity-60 duration-100 truncate max-w-[19rem]" > {e.name} diff --git a/components/LinkPreview.tsx b/components/LinkPreview.tsx index c81e46e..652ed29 100644 --- a/components/LinkPreview.tsx +++ b/components/LinkPreview.tsx @@ -75,7 +75,7 @@ export default function LinkPreview({ link, className, settings }: Props) {

{1}

-

+

{unescapeString(link.name as string)}

@@ -84,9 +84,7 @@ export default function LinkPreview({ link, className, settings }: Props) { icon={faFolder} className="w-4 h-4 mt-1 drop-shadow text-sky-400" /> -

- Landing Pages ⚡️ -

+

Landing Pages ⚡️

-

- Edit -

+

Edit

) : undefined} @@ -102,9 +100,7 @@ export default function LinkSidebar({ className, onClick }: Props) { className="w-6 h-6 text-gray-500 dark:text-gray-300" /> -

- Preserved Formats -

+

Preserved Formats

{link?.collection.ownerId === userId || @@ -127,9 +123,7 @@ export default function LinkSidebar({ className, onClick }: Props) { className="w-6 h-6 text-gray-500 dark:text-gray-300" /> -

- Delete -

+

Delete

) : undefined} diff --git a/components/Modal/Collection/CollectionInfo.tsx b/components/Modal/Collection/CollectionInfo.tsx index 962e9ee..117db41 100644 --- a/components/Modal/Collection/CollectionInfo.tsx +++ b/components/Modal/Collection/CollectionInfo.tsx @@ -60,7 +60,7 @@ export default function CollectionInfo({
-

Name

+

Name

-

Color

+

Color

setCollection({ ...collection, color: "#0ea5e9" }) } @@ -96,7 +96,7 @@ export default function CollectionInfo({
-

Description

+

Description