diff options
| author | MohamedBassem <me@mbassem.com> | 2024-04-06 01:35:37 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-04-06 01:35:37 +0100 |
| commit | 4cf990816817c009a512356373fdb1c4baa5e63b (patch) | |
| tree | 87109f8b1ad0d2a02b0936745472dc4347167f18 /apps/web/app/dashboard | |
| parent | bc6ee2edc9f16791b2bb64049c2c34ed83796d29 (diff) | |
| download | karakeep-4cf990816817c009a512356373fdb1c4baa5e63b.tar.zst | |
ui(web): Add a tooltip explaining what archived means
Diffstat (limited to 'apps/web/app/dashboard')
| -rw-r--r-- | apps/web/app/dashboard/archive/page.tsx | 10 | ||||
| -rw-r--r-- | apps/web/app/dashboard/tags/page.tsx | 34 |
2 files changed, 16 insertions, 28 deletions
diff --git a/apps/web/app/dashboard/archive/page.tsx b/apps/web/app/dashboard/archive/page.tsx index 3c3520cc..b2b4df4f 100644 --- a/apps/web/app/dashboard/archive/page.tsx +++ b/apps/web/app/dashboard/archive/page.tsx @@ -1,9 +1,17 @@ import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks"; +import InfoTooltip from "@/components/ui/info-tooltip"; export default async function ArchivedBookmarkPage() { return ( <Bookmarks - header={<p className="text-2xl">🗄️ Archive</p>} + header={ + <span className="flex gap-2"> + <p className="text-2xl">🗄️ Archive</p> + <InfoTooltip size={17} className="my-auto" variant="explain"> + <p>Archived bookmarks won't appear in the homepage</p> + </InfoTooltip> + </span> + } query={{ archived: true }} showDivider={true} /> diff --git a/apps/web/app/dashboard/tags/page.tsx b/apps/web/app/dashboard/tags/page.tsx index 7afe691d..9f5038e7 100644 --- a/apps/web/app/dashboard/tags/page.tsx +++ b/apps/web/app/dashboard/tags/page.tsx @@ -1,13 +1,7 @@ import Link from "next/link"; +import InfoTooltip from "@/components/ui/info-tooltip"; import { Separator } from "@/components/ui/separator"; -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from "@/components/ui/tooltip"; import { api } from "@/server/api/client"; -import { Info } from "lucide-react"; function TagPill({ name, count }: { name: string; count: number }) { return ( @@ -48,16 +42,9 @@ export default async function TagsPage() { <span className="flex items-center gap-2"> <p className="text-lg">Your Tags</p> - <TooltipProvider delayDuration={0}> - <Tooltip> - <TooltipTrigger asChild> - <Info size={20} /> - </TooltipTrigger> - <TooltipContent> - <p>Tags that were attached at least once by you</p> - </TooltipContent> - </Tooltip> - </TooltipProvider> + <InfoTooltip size={15} className="my-auto" variant="explain"> + <p>Tags that were attached at least once by you</p> + </InfoTooltip> </span> <div className="flex flex-wrap gap-3">{tagsToPill(humanTags)}</div> @@ -65,16 +52,9 @@ export default async function TagsPage() { <span className="flex items-center gap-2"> <p className="text-lg">AI Tags</p> - <TooltipProvider delayDuration={0}> - <Tooltip> - <TooltipTrigger asChild> - <Info size={20} /> - </TooltipTrigger> - <TooltipContent> - <p>Tags that were only attached automatically (by AI)</p> - </TooltipContent> - </Tooltip> - </TooltipProvider> + <InfoTooltip size={15} className="my-auto" variant="explain"> + <p>Tags that were only attached automatically (by AI)</p> + </InfoTooltip> </span> <div className="flex flex-wrap gap-3">{tagsToPill(aiTags)}</div> </div> |
