diff --git a/components/LinkViews/LinkComponents/LinkCollection.tsx b/components/LinkViews/LinkComponents/LinkCollection.tsx index 4eafee7..b6e32e9 100644 --- a/components/LinkViews/LinkComponents/LinkCollection.tsx +++ b/components/LinkViews/LinkComponents/LinkCollection.tsx @@ -5,7 +5,10 @@ import { import { useRouter } from "next/router"; import React from "react"; -export default function LinkCollection({ link, collection }: { +export default function LinkCollection({ + link, + collection, +}: { link: LinkIncludingShortenedCollectionAndTags; collection: CollectionIncludingMembersAndLinkCount; }) { @@ -19,7 +22,10 @@ export default function LinkCollection({ link, collection }: { }} className="flex items-center gap-1 max-w-full w-fit hover:opacity-70 duration-100" > - +

{collection?.name}

); diff --git a/components/Modal/Collection/CollectionInfo.tsx b/components/Modal/Collection/CollectionInfo.tsx index be33707..8ee4e87 100644 --- a/components/Modal/Collection/CollectionInfo.tsx +++ b/components/Modal/Collection/CollectionInfo.tsx @@ -67,7 +67,7 @@ export default function CollectionInfo({

Color

- +
Color

- +
diff --git a/components/ModalContent/NewCollectionModal.tsx b/components/ModalContent/NewCollectionModal.tsx index 511769b..8c68c83 100644 --- a/components/ModalContent/NewCollectionModal.tsx +++ b/components/ModalContent/NewCollectionModal.tsx @@ -68,7 +68,10 @@ export default function NewCollectionModal({ onClose }: Props) {

Color

- +
diff --git a/components/ModalContent/NewLinkModal.tsx b/components/ModalContent/NewLinkModal.tsx index 2b0ef25..50288f8 100644 --- a/components/ModalContent/NewLinkModal.tsx +++ b/components/ModalContent/NewLinkModal.tsx @@ -146,14 +146,6 @@ export default function NewLinkModal({ onClose }: Props) {
-
setOptionsExpanded(!optionsExpanded)} - className={`cursor-pointer duration-100 flex items-center text-sm`} - > - {optionsExpanded ? "Hide" : "More"} Options - -
- {optionsExpanded ? (
{/*
*/} @@ -194,7 +186,21 @@ export default function NewLinkModal({ onClose }: Props) { ) : undefined}
-
+
+
setOptionsExpanded(!optionsExpanded)} + className={`rounded-md cursor-pointer btn btn-sm btn-ghost duration-100 flex items-center px-2 w-fit text-sm`} + > +

+ {optionsExpanded ? "Hide" : "More"} Options +

+ +
+
@@ -66,13 +66,13 @@ export default function Navbar() {
- + - +
diff --git a/components/NoLinksFound.tsx b/components/NoLinksFound.tsx index b4ef8f7..1d29a63 100644 --- a/components/NoLinksFound.tsx +++ b/components/NoLinksFound.tsx @@ -33,9 +33,7 @@ export default function NoLinksFound({ text }: Props) { }} className="inline-flex gap-1 relative w-[11rem] items-center btn btn-accent dark:border-violet-400 text-white group" > - + Create New Link diff --git a/components/PageHeader.tsx b/components/PageHeader.tsx index e19b59c..6af9a25 100644 --- a/components/PageHeader.tsx +++ b/components/PageHeader.tsx @@ -16,7 +16,7 @@ export default function PageHeader({ >

{title}

-

{description}

+

{description}

); diff --git a/components/ProfilePhoto.tsx b/components/ProfilePhoto.tsx index 42a858d..ec25a6e 100644 --- a/components/ProfilePhoto.tsx +++ b/components/ProfilePhoto.tsx @@ -6,7 +6,7 @@ type Props = { className?: string; priority?: boolean; name?: string; - dimensionClass?: string; + large?: boolean; }; export default function ProfilePhoto({ @@ -14,7 +14,7 @@ export default function ProfilePhoto({ className, priority, name, - dimensionClass, + large, }: Props) { const [image, setImage] = useState(""); @@ -30,14 +30,14 @@ export default function ProfilePhoto({ return !image ? (
{name ? ( {name.slice(0, 1)} ) : ( - + )}
@@ -45,7 +45,7 @@ export default function ProfilePhoto({
- + {isValidUrl(link?.url || "") ? new URL(link?.url as string).host @@ -190,7 +188,7 @@ export default function ReadableView({ link }: Props) { className="flex items-center gap-1 cursor-pointer hover:opacity-60 duration-100 mr-2 z-10" >

{ const storedValue = localStorage.getItem("collectionDisclosure"); return storedValue ? storedValue === "true" : true; - }, + } ); const { collections } = useCollectionStore(); @@ -32,7 +32,7 @@ export default function Sidebar({ className }: { className?: string }) { useEffect(() => { localStorage.setItem( "collectionDisclosure", - collectionDisclosure ? "true" : "false", + collectionDisclosure ? "true" : "false" ); }, [collectionDisclosure]); @@ -78,7 +78,7 @@ export default function Sidebar({ className }: { className?: string }) { : "hover:bg-neutral/20" } duration-100 py-5 px-2 cursor-pointer flex items-center gap-2 w-full rounded-md h-8 capitalize`} > - +

All Collections

@@ -104,9 +104,9 @@ export default function Sidebar({ className }: { className?: string }) { }} className="flex items-center justify-between w-full text-left mb-2 pl-2 font-bold text-neutral mt-5" > -

Collections

+

Collections

@@ -134,14 +134,14 @@ export default function Sidebar({ className }: { className?: string }) { } duration-100 py-1 px-2 cursor-pointer flex items-center gap-2 w-full rounded-md h-8 capitalize`} >

{e.name}

{e.isPublic ? ( ) : undefined} @@ -173,8 +173,8 @@ export default function Sidebar({ className }: { className?: string }) { >

Tags

diff --git a/components/SortDropdown.tsx b/components/SortDropdown.tsx index 046331c..848b1b8 100644 --- a/components/SortDropdown.tsx +++ b/components/SortDropdown.tsx @@ -14,9 +14,7 @@ export default function SortDropdown({ sortBy, setSort }: Props) { role="button" className="btn btn-sm btn-square btn-ghost" > - +
  • diff --git a/components/ToggleDarkMode.tsx b/components/ToggleDarkMode.tsx index 9024347..1f39060 100644 --- a/components/ToggleDarkMode.tsx +++ b/components/ToggleDarkMode.tsx @@ -32,8 +32,8 @@ export default function ToggleDarkMode({ className }: Props) { className="theme-controller" checked={localStorage.getItem("theme") === "light" ? false : true} /> - - + +
); diff --git a/layouts/SettingsLayout.tsx b/layouts/SettingsLayout.tsx index f9d5af2..b061372 100644 --- a/layouts/SettingsLayout.tsx +++ b/layouts/SettingsLayout.tsx @@ -53,18 +53,14 @@ export default function SettingsLayout({ children }: Props) { onClick={toggleSidebar} className="text-neutral btn btn-square btn-sm btn-ghost lg:hidden" > - +
- +
diff --git a/pages/collections/[id].tsx b/pages/collections/[id].tsx index 69309e5..a3d6129 100644 --- a/pages/collections/[id].tsx +++ b/pages/collections/[id].tsx @@ -109,7 +109,7 @@ export default function Index() {
@@ -124,10 +124,7 @@ export default function Index() { role="button" className="btn btn-ghost btn-sm btn-square text-neutral" > - +
    {permissions === true ? ( diff --git a/pages/collections/index.tsx b/pages/collections/index.tsx index 349a223..15d2ef8 100644 --- a/pages/collections/index.tsx +++ b/pages/collections/index.tsx @@ -24,15 +24,17 @@ export default function Collections() { return (
    - +
    + -
    -
    - +
    +
    + +
    @@ -48,14 +50,14 @@ export default function Collections() { onClick={() => setNewCollectionModal(true)} >

    New Collection

    - +
    {sortedCollections.filter((e) => e.ownerId !== data?.user.id)[0] ? ( <>
    - +

    diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx index 1c65f33..a0aec27 100644 --- a/pages/dashboard.tsx +++ b/pages/dashboard.tsx @@ -33,8 +33,8 @@ export default function Dashboard() { collections.reduce( (accumulator, collection) => accumulator + (collection._count as any).links, - 0, - ), + 0 + ) ); }, [collections]); @@ -94,10 +94,13 @@ export default function Dashboard() { return (

    - +
    -
    +
    {links.slice(0, showLinks).map((e, i) => ( - + ))}
    @@ -170,7 +173,7 @@ export default function Dashboard() { }} className="inline-flex items-center gap-2 text-sm btn btn-accent dark:border-accent text-white" > - + Add New Link @@ -186,8 +189,7 @@ export default function Dashboard() {

    Import From

    -
      +
    @@ -282,7 +284,7 @@ export default function Dashboard() {
    {newLinkModal ? ( - setNewLinkModal(false)}/> + setNewLinkModal(false)} /> ) : undefined}
    ); diff --git a/pages/links/index.tsx b/pages/links/index.tsx index 873bb6f..c6efa28 100644 --- a/pages/links/index.tsx +++ b/pages/links/index.tsx @@ -10,7 +10,6 @@ import ViewDropdown from "@/components/ViewDropdown"; import DefaultView from "@/components/LinkViews/DefaultView"; import ListView from "@/components/LinkViews/ListView"; - export default function Links() { const { links } = useLinkStore(); @@ -33,21 +32,23 @@ export default function Links() { return (
    - +
    + -
    - - +
    + + +
    {links[0] ? ( - + ) : ( - + )}
    diff --git a/pages/links/pinned.tsx b/pages/links/pinned.tsx index 48446f9..14d9dd9 100644 --- a/pages/links/pinned.tsx +++ b/pages/links/pinned.tsx @@ -31,18 +31,20 @@ export default function PinnedLinks() { return (
    - -
    - - +
    + +
    + + +
    {links.some((e) => e.pinnedBy && e.pinnedBy[0]) ? ( - + ) : (
    - +
    + -
    -
    - - - +
    +
    + + + +
    + {links[0] ? ( ) : ( diff --git a/pages/settings/account.tsx b/pages/settings/account.tsx index 7e4d53b..a4ff709 100644 --- a/pages/settings/account.tsx +++ b/pages/settings/account.tsx @@ -197,7 +197,7 @@ export default function Account() { {user.image && (
    - +
    )}
    @@ -250,9 +248,7 @@ export default function Account() { className="flex gap-2 text-sm btn btn-outline btn-neutral group" id="import-dropdown" > - +

    Import From

      @@ -304,9 +300,7 @@ export default function Account() {

      Download your data instantly.

      - +

      Export Data

      diff --git a/pages/settings/appearance.tsx b/pages/settings/appearance.tsx index 6d17770..385225a 100644 --- a/pages/settings/appearance.tsx +++ b/pages/settings/appearance.tsx @@ -67,31 +67,27 @@ export default function Appearance() {

      Select Theme

      updateSettings({ theme: "dark" })} > - +

      Dark

      {/*
      */}
      updateSettings({ theme: "light" })} > - +

      Light

      {/*
      */}
      diff --git a/pages/settings/archive.tsx b/pages/settings/archive.tsx index de45159..f664638 100644 --- a/pages/settings/archive.tsx +++ b/pages/settings/archive.tsx @@ -61,7 +61,7 @@ export default function Archive() {
      -

      Formats to Archive webpages:

      +

      Formats to Archive/Preserve webpages: