Skip to content

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

fixes

Isaac62b1bcbc59c8
diff --git a/apps/web/components/DashboardLayoutDropdown.tsx b/apps/web/components/DashboardLayoutDropdown.tsx
index 69538aab..decedf37 100644
--- a/apps/web/components/DashboardLayoutDropdown.tsx
+++ b/apps/web/components/DashboardLayoutDropdown.tsx
@@ -89,7 +89,7 @@ export default function DashboardLayoutDropdown() {
order: getSectionOrder(DashboardSectionType.PINNED_LINKS),
},
],
- [user]
+ [dashboardSections]
);
const collectionSections = useMemo(
@@ -104,7 +104,7 @@ export default function DashboardLayoutDropdown() {
),
order: getSectionOrder(DashboardSectionType.COLLECTION, collection.id),
})),
- [collections, user]
+ [collections, dashboardSections]
);
const allSections = useMemo(
@@ -314,8 +314,9 @@ function DraggableListItem({
onChange={() => onCheckboxChange(section)}
/>
<label
- htmlFor={`section-${section.type}-${section.collectionId || "default"
- }`}
+ htmlFor={`section-${section.type}-${
+ section.collectionId || "default"
+ }`}
className="text-sm select-none"
>
{section.name}
@@ -323,9 +324,10 @@ function DraggableListItem({
</div>
<i
- className={`bi-grip-vertical text-neutral ${section.enabled ? "cursor-grab" : "opacity-50"
- }`}
+ className={`bi-grip-vertical text-neutral ${
+ section.enabled ? "cursor-grab" : "opacity-50"
+ }`}
/>
</li>
);
-}
\ No newline at end of file
+}
diff --git a/apps/web/components/ui/separator.tsx b/apps/web/components/ui/separator.tsx
index 6d7f1226..11b87418 100644
--- a/apps/web/components/ui/separator.tsx
+++ b/apps/web/components/ui/separator.tsx
@@ -1,7 +1,7 @@
-import * as React from "react"
-import * as SeparatorPrimitive from "@radix-ui/react-separator"
+import * as React from "react";
+import * as SeparatorPrimitive from "@radix-ui/react-separator";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
const Separator = React.forwardRef<
React.ElementRef<typeof SeparatorPrimitive.Root>,
@@ -23,7 +23,7 @@ const Separator = React.forwardRef<
{...props}
/>
)
-)
-Separator.displayName = SeparatorPrimitive.Root.displayName
+);
+Separator.displayName = SeparatorPrimitive.Root.displayName;
-export { Separator }
+export { Separator };
diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsx
index f6de3268..5f1b8907 100644
--- a/apps/web/pages/dashboard.tsx
+++ b/apps/web/pages/dashboard.tsx
@@ -57,7 +57,7 @@ export default function Dashboard() {
user.referredBy === null &&
// if user is using Linkwarden for more than 3 days
new Date().getTime() - new Date(user.createdAt).getTime() >
- 3 * 24 * 60 * 60 * 1000
+ 3 * 24 * 60 * 60 * 1000
) {
setTimeout(() => {
setShowsSurveyModal(true);
@@ -340,7 +340,7 @@ export default function Dashboard() {
/>
</div>
) : links?.filter((link: any) => link.collection.id === collection.id)
- .length > 0 ? (
+ .length > 0 ? (
<div className="w-full">
<Links
links={links
diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.json
index a9e92243..5b2a4dff 100644
--- a/apps/web/public/locales/en/common.json
+++ b/apps/web/public/locales/en/common.json
@@ -487,4 +487,4 @@
"notes_highlights": "Notes & Highlights",
"no_notes_highlights": "No notes or highlights found for this link.",
"save": "Save"
-}
\ No newline at end of file
+}