From 7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 28 Dec 2024 12:30:24 +0000 Subject: feat: Implement the all highlights page. Fixes #620 --- apps/web/components/dashboard/sidebar/ModileSidebar.tsx | 6 +++++- apps/web/components/dashboard/sidebar/Sidebar.tsx | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'apps/web/components/dashboard/sidebar') diff --git a/apps/web/components/dashboard/sidebar/ModileSidebar.tsx b/apps/web/components/dashboard/sidebar/ModileSidebar.tsx index bfa91afa..777877bf 100644 --- a/apps/web/components/dashboard/sidebar/ModileSidebar.tsx +++ b/apps/web/components/dashboard/sidebar/ModileSidebar.tsx @@ -1,6 +1,6 @@ import MobileSidebarItem from "@/components/shared/sidebar/ModileSidebarItem"; import HoarderLogoIcon from "@/public/icons/logo-icon.svg"; -import { ClipboardList, Search, Tag } from "lucide-react"; +import { ClipboardList, Highlighter, Search, Tag } from "lucide-react"; export default async function MobileSidebar() { return ( @@ -13,6 +13,10 @@ export default async function MobileSidebar() { } path="/dashboard/search" /> } path="/dashboard/lists" /> } path="/dashboard/tags" /> + } + path="/dashboard/highlights" + /> ); diff --git a/apps/web/components/dashboard/sidebar/Sidebar.tsx b/apps/web/components/dashboard/sidebar/Sidebar.tsx index 8891d9bc..0f805a09 100644 --- a/apps/web/components/dashboard/sidebar/Sidebar.tsx +++ b/apps/web/components/dashboard/sidebar/Sidebar.tsx @@ -4,7 +4,7 @@ import { Separator } from "@/components/ui/separator"; import { useTranslation } from "@/lib/i18n/server"; import { api } from "@/server/api/client"; import { getServerAuthSession } from "@/server/auth"; -import { Archive, Home, Search, Tag } from "lucide-react"; +import { Archive, Highlighter, Home, Search, Tag } from "lucide-react"; import serverConfig from "@hoarder/shared/config"; @@ -45,6 +45,11 @@ export default async function Sidebar() { icon: , path: "/dashboard/tags", }, + { + name: t("common.highlights"), + icon: , + path: "/dashboard/highlights", + }, { name: t("common.archive"), icon: , -- cgit v1.2.3-70-g09d2