mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Fix notification delete button
This commit is contained in:
@@ -782,43 +782,42 @@ export const createColumns = ({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{showDeleteLog ? (
|
|
||||||
<TooltipProvider>
|
|
||||||
<Tooltip>
|
|
||||||
<TooltipTrigger asChild>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
class="inline-flex h-6 ml-1 items-center justify-center text-muted-foreground hover:text-foreground"
|
|
||||||
onClick={() =>
|
|
||||||
shiftHeld.value
|
|
||||||
? deleteNotificationLog(
|
|
||||||
original
|
|
||||||
)
|
|
||||||
: deleteNotificationLogPrompt(
|
|
||||||
original
|
|
||||||
)
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{shiftHeld.value ? (
|
|
||||||
<X class="h-4 w-4 text-red-600" />
|
|
||||||
) : (
|
|
||||||
<Trash2 class="h-4 w-4" />
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipContent side="top">
|
|
||||||
<span>
|
|
||||||
{t(
|
|
||||||
'view.notification.actions.delete_log'
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
</TooltipProvider>
|
|
||||||
) : null}
|
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
{showDeleteLog ? (
|
||||||
|
<TooltipProvider>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="inline-flex h-6 ml-1 items-center justify-center text-muted-foreground hover:text-foreground"
|
||||||
|
onClick={() =>
|
||||||
|
shiftHeld.value
|
||||||
|
? deleteNotificationLog(
|
||||||
|
original
|
||||||
|
)
|
||||||
|
: deleteNotificationLogPrompt(
|
||||||
|
original
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{shiftHeld.value ? (
|
||||||
|
<X class="h-4 w-4 text-red-600" />
|
||||||
|
) : (
|
||||||
|
<Trash2 class="h-4 w-4" />
|
||||||
|
)}
|
||||||
|
</button>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent side="top">
|
||||||
|
<span>
|
||||||
|
{t(
|
||||||
|
'view.notification.actions.delete_log'
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user