From b51b08b0f489f52c253225d153da90c91b8c9974 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Sun, 26 Nov 2023 05:17:08 -0500 Subject: [PATCH] changed classNames --- components/AnnouncementBar.tsx | 2 +- components/CollectionCard.tsx | 11 +++++---- components/Dropdown.tsx | 2 +- components/FilterSearchDropdown.tsx | 2 +- components/LinkCard.tsx | 6 ++--- components/LinkPreview.tsx | 2 +- components/LinkSidebar.tsx | 2 +- .../Modal/Collection/CollectionInfo.tsx | 4 ++-- components/Modal/Link/AddOrEditLink.tsx | 4 ++-- components/Modal/index.tsx | 2 +- components/Navbar.tsx | 6 ++--- components/PublicPage/PublicLinkCard.tsx | 2 +- components/PublicPage/PublicSearchBar.tsx | 2 +- components/SearchBar.tsx | 2 +- components/SettingsSidebar.tsx | 4 ++-- components/Sidebar.tsx | 2 +- components/TextInput.tsx | 2 +- hooks/useInitialData.tsx | 5 +++- layouts/CenteredForm.tsx | 24 ++++--------------- layouts/LinkLayout.tsx | 2 +- layouts/SettingsLayout.tsx | 4 ++-- pages/_app.tsx | 11 ++------- pages/choose-username.tsx | 4 ++-- pages/collections/[id].tsx | 4 ++-- pages/collections/index.tsx | 4 ++-- pages/confirmation.tsx | 2 +- pages/dashboard.tsx | 6 ++--- pages/forgot.tsx | 4 ++-- pages/links/[id].tsx | 2 +- pages/links/index.tsx | 2 +- pages/links/pinned.tsx | 2 +- pages/login.tsx | 6 ++--- pages/public/collections/[id].tsx | 8 +++---- pages/public/links/[id].tsx | 2 +- pages/register.tsx | 14 +++++------ pages/search.tsx | 4 ++-- pages/settings/account.tsx | 14 +++++------ pages/settings/delete.tsx | 14 +++++++---- pages/subscribe.tsx | 2 +- pages/tags/[id].tsx | 10 ++++---- store/localSettings.ts | 17 ++++++------- styles/globals.css | 2 +- 42 files changed, 107 insertions(+), 119 deletions(-) diff --git a/components/AnnouncementBar.tsx b/components/AnnouncementBar.tsx index 6e46eea..e20d3d9 100644 --- a/components/AnnouncementBar.tsx +++ b/components/AnnouncementBar.tsx @@ -9,7 +9,7 @@ type Props = { export default function AnnouncementBar({ toggleAnnouncementBar }: Props) { return ( -
+
🎉️{" "} diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index 177f590..58e1029 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -47,19 +47,22 @@ export default function CollectionCard({ collection, className }: Props) { settings.theme === "dark" ? "#262626" : "#f3f4f6" } 50%, ${settings.theme === "dark" ? "#262626" : "#f9fafb"} 100%)`, }} - className={`border border-solid border-neutral self-stretch min-h-[12rem] rounded-2xl shadow duration-100 hover:shadow-none hover:opacity-80 group relative ${ + className={`border border-solid border-neutral-content self-stretch min-h-[12rem] rounded-2xl shadow duration-100 hover:shadow-none hover:opacity-80 group relative ${ className || "" }`} >
setExpandDropdown({ x: e.clientX, y: e.clientY })} + onClick={(e) => { + setExpandDropdown({ x: e.clientX, y: e.clientY }); + }} id={"expand-dropdown" + collection.id} - className="inline-flex absolute top-5 right-5 rounded-md cursor-pointer hover:bg-slate-200 hover:dark:bg-neutral-700 duration-100 p-1" + className="btn btn-ghost btn-sm btn-square absolute right-4 top-4 z-10" >
{ const inner = e && (
-
+

{e.name}

diff --git a/components/FilterSearchDropdown.tsx b/components/FilterSearchDropdown.tsx index 3552ea6..a137017 100644 --- a/components/FilterSearchDropdown.tsx +++ b/components/FilterSearchDropdown.tsx @@ -25,7 +25,7 @@ export default function FilterSearchDropdown({ const target = e.target as HTMLInputElement; if (target.id !== "filter-dropdown") setFilterDropdown(false); }} - className="absolute top-8 right-0 border border-neutral shadow-md bg-base-200 rounded-md p-2 z-20 w-40" + className="absolute top-8 right-0 border border-neutral-content shadow-md bg-base-200 rounded-md p-2 z-20 w-40" >

Filter by

diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index 2b7b546..9d49342 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -138,7 +138,7 @@ export default function LinkCard({ link, count, className }: Props) { return ( <>
@@ -150,7 +150,7 @@ export default function LinkCard({ link, count, className }: Props) { setExpandDropdown({ x: e.clientX, y: e.clientY }); }} id={"expand-dropdown" + link.id} - className="text-neutral-content dark:text-gray-300 inline-flex rounded-md cursor-pointer btn btn-ghost btn-sm btn-square dark:hover:bg-neutral-700 absolute right-4 top-4 z-10 duration-100" + className="btn btn-ghost btn-sm btn-square absolute right-4 top-4 z-10" > ))}
-
+
) : undefined} */} diff --git a/components/LinkPreview.tsx b/components/LinkPreview.tsx index 3525521..390a914 100644 --- a/components/LinkPreview.tsx +++ b/components/LinkPreview.tsx @@ -49,7 +49,7 @@ export default function LinkPreview({ link, className, settings }: Props) { return ( <>
diff --git a/components/LinkSidebar.tsx b/components/LinkSidebar.tsx index 19c4986..f3136f4 100644 --- a/components/LinkSidebar.tsx +++ b/components/LinkSidebar.tsx @@ -47,7 +47,7 @@ export default function LinkSidebar({ className, onClick }: Props) { return (
diff --git a/components/Modal/Collection/CollectionInfo.tsx b/components/Modal/Collection/CollectionInfo.tsx index 01c6b38..635bdd4 100644 --- a/components/Modal/Collection/CollectionInfo.tsx +++ b/components/Modal/Collection/CollectionInfo.tsx @@ -79,7 +79,7 @@ export default function CollectionInfo({ />
setCollection({ ...collection, color: "#0ea5e9" }) } @@ -98,7 +98,7 @@ export default function CollectionInfo({

Description