mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-15 08:49:59 +02:00
💄 nice little animation on alert rule field
This commit is contained in:
@@ -60,6 +60,7 @@ import { useFormContext, useWatch } from "react-hook-form";
|
|||||||
import { useDebounce } from "use-debounce";
|
import { useDebounce } from "use-debounce";
|
||||||
import { RolesSelector } from "../roles-selector";
|
import { RolesSelector } from "../roles-selector";
|
||||||
import { UsersSelector } from "../users-selector";
|
import { UsersSelector } from "../users-selector";
|
||||||
|
import { cn } from "@app/lib/cn";
|
||||||
|
|
||||||
export function AddActionPanel({
|
export function AddActionPanel({
|
||||||
onAdd
|
onAdd
|
||||||
@@ -149,7 +150,12 @@ export function AddActionPanel({
|
|||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button type="button" variant="outline">
|
<Button type="button" variant="outline">
|
||||||
{t("alertingSelectActionType")}
|
{t("alertingSelectActionType")}
|
||||||
<ChevronRightIcon className="size-4" />
|
<ChevronRightIcon
|
||||||
|
className={cn(
|
||||||
|
"size-4 transition-transform duration-150",
|
||||||
|
isPopoverOpen && "rotate-90"
|
||||||
|
)}
|
||||||
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent className="shadow-md flex flex-col gap-3 w-150">
|
<PopoverContent className="shadow-md flex flex-col gap-3 w-150">
|
||||||
|
|||||||
Reference in New Issue
Block a user