Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

minor fix

daniel31x131e0aaed8331f
diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx
index f2507f95..4469c5aa 100644
--- a/pages/dashboard.tsx
+++ b/pages/dashboard.tsx
@@ -315,7 +315,7 @@ export default function Dashboard() {
style={{ flex: "1 1 auto" }}
className="flex flex-col 2xl:flex-row items-start 2xl:gap-2"
>
- {links[0] ? (
+ {links.some((e) => e.pinnedBy && e.pinnedBy[0]) ? (
<div className="w-full">
<div
className={`grid overflow-hidden 2xl:grid-cols-3 xl:grid-cols-2 grid-cols-1 gap-5 w-full`}
diff --git a/pages/links/pinned.tsx b/pages/links/pinned.tsx
index 130a4e43..e758b514 100644
--- a/pages/links/pinned.tsx
+++ b/pages/links/pinned.tsx
@@ -59,14 +59,26 @@ export default function PinnedLinks() {
) : null}
</div>
</div>
- {links[0] ? (
+ {links.some((e) => e.pinnedBy && e.pinnedBy[0]) ? (
<div className="grid 2xl:grid-cols-3 xl:grid-cols-2 grid-cols-1 gap-5">
{links.map((e, i) => {
return <LinkCard key={i} link={e} count={i} />;
})}
</div>
) : (
- <NoLinksFound text="You Haven't Created Any Links Yet" />
+ <div
+ style={{ flex: "1 1 auto" }}
+ className="sky-shadow flex flex-col justify-center h-full border border-solid border-sky-100 dark:border-neutral-700 w-full mx-auto p-10 rounded-2xl bg-gray-50 dark:bg-neutral-800"
+ >
+ <p className="text-center text-2xl text-black dark:text-white">
+ Pin Your Favorite Links Here!
+ </p>
+ <p className="text-center mx-auto max-w-96 w-fit text-gray-500 dark:text-gray-300 text-sm mt-2">
+ You can Pin your favorite Links by clicking on the three dots on
+ each Link and clicking{" "}
+ <span className="font-semibold">Pin to Dashboard</span>.
+ </p>
+ </div>
)}
</div>
</MainLayout>