From c2207edb4967b112ec0fd46172a16cc38b2b0ebb Mon Sep 17 00:00:00 2001 From: Raquel Smith Date: Sat, 27 Jun 2026 16:18:22 -0700 Subject: [PATCH] fix(folder-picker): import toast from the ui primitive, not sonner FolderPicker imported `toast` from `sonner`, but `sonner` is not a declared dependency (it was removed in #2958) and is absent from the lockfile, so `build` and `typecheck` fail on main. Use the canonical `@posthog/ui/primitives/toast` (the same `toast.error(title, { description })` API) like the other 66 call sites. Generated-By: PostHog Code Task-Id: dc505d33-c219-41c9-ac6b-192caf7730ea --- packages/ui/src/features/folder-picker/FolderPicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/features/folder-picker/FolderPicker.tsx b/packages/ui/src/features/folder-picker/FolderPicker.tsx index 6c802ee07..ef6604087 100644 --- a/packages/ui/src/features/folder-picker/FolderPicker.tsx +++ b/packages/ui/src/features/folder-picker/FolderPicker.tsx @@ -26,10 +26,10 @@ import { MenuLabel, } from "@posthog/quill"; import { useFolders } from "@posthog/ui/features/folders/useFolders"; +import { toast } from "@posthog/ui/primitives/toast"; import { FIELD_TRIGGER_CLASS } from "@posthog/ui/styles/fieldTrigger"; import { Flex, Text } from "@radix-ui/themes"; import { type RefObject, useState } from "react"; -import { toast } from "sonner"; interface FolderPickerProps { value: string;