Skip to content

Commit

Permalink
feat: isPrivate icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 14, 2024
1 parent ea59a4f commit 6aa257c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/renderer/src/components/feed-column/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import { cn } from "@renderer/lib/utils"
import { SiteIcon } from "../site-icon"
import { Response as SubscriptionsResponse } from "@renderer/lib/queries/subscriptions"
import { FeedContextMenu } from "./context-menu"
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@renderer/components/ui/tooltip"

export function FeedList({
className,
Expand Down Expand Up @@ -159,6 +165,19 @@ function FeedCategory({
<div className="flex items-center min-w-0">
<SiteIcon url={feed.feeds.siteUrl} className="w-4 h-4" />
<div className="truncate">{feed.feeds.title}</div>
{feed.isPrivate && (
<TooltipProvider delayDuration={300}>
<Tooltip>
<TooltipTrigger asChild>
<i className="i-mingcute-eye-close-line shrink-0 ml-0.5" />
</TooltipTrigger>
<TooltipContent>
This feed will not be publicly displayed on your
profile page.
</TooltipContent>
</Tooltip>
</TooltipProvider>
)}
</div>
{!!feed.unread && (
<div className="text-xs text-zinc-500 ml-2">
Expand Down

0 comments on commit 6aa257c

Please sign in to comment.