Skip to content

Commit

Permalink
changed style of visibility cell in templates view
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed Dec 5, 2024
1 parent 7efa824 commit 21becc6
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions apps/web/src/components/Dashboard/Templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,28 +191,16 @@ export function TemplatesContent({
key={template.templateID}
>
<TableCell>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button
variant="ghost"
size="icon"
onClick={(e) => {
e.stopPropagation()
setCurrentTemplate(template)
setIsPublishTemplateDialogOpen(true)
}}
>
{template.public ? (
<LockOpen className="w-4 h-4" />
) : (
<Lock className="w-4 h-4" />
)}
</Button>
</TooltipTrigger>
<TooltipContent>Change visibility</TooltipContent>
</Tooltip>
</TooltipProvider>
<div className="flex items-center gap-2">
{template.public ? (
<LockOpen className="w-4 h-4" />
) : (
<Lock className="w-4 h-4" />
)}
<span className="text-xs">
{template.public ? 'Visible' : 'Private'}
</span>
</div>
</TableCell>
<TableCell>{template.templateID}</TableCell>
<TableCell className="font-mono">
Expand Down

0 comments on commit 21becc6

Please sign in to comment.