diff --git a/apps/desktop/src/imports/screen.test.tsx b/apps/desktop/src/imports/screen.test.tsx index ee7f2e3a6f3..6af72607167 100644 --- a/apps/desktop/src/imports/screen.test.tsx +++ b/apps/desktop/src/imports/screen.test.tsx @@ -202,9 +202,20 @@ describe("MeetingImportScreen", () => { expect( screen.getAllByRole("button", { name: "Connect & import" }), ).toHaveLength(3); + expect( + screen.getAllByRole("button", { name: "Connect & import" })[0]?.className, + ).toContain("hover:bg-primary-foreground/10"); + expect( + screen + .getAllByRole("button", { name: "Connect & import" })[0] + ?.closest('[role="group"]')?.parentElement?.className, + ).toContain("focus-within:ring-[3px]"); expect(screen.getAllByRole("button", { name: "Use files" })).toHaveLength( 3, ); + expect( + screen.getAllByRole("button", { name: "Use files" })[0]?.className, + ).toContain("hover:bg-primary-foreground/10"); expect(screen.queryByRole("menuitem", { name: "Use files" })).toBeNull(); expect( screen.getAllByRole("button", { name: "Choose files" }), diff --git a/apps/desktop/src/imports/screen.tsx b/apps/desktop/src/imports/screen.tsx index de23c6c6c33..5a6d63698af 100644 --- a/apps/desktop/src/imports/screen.tsx +++ b/apps/desktop/src/imports/screen.tsx @@ -26,6 +26,7 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from "@anlg/ui/components/ui/dropdown-menu"; +import { useSquircleRef } from "@anlg/ui/hooks/use-squircle"; import { cn } from "@anlg/utils"; import { @@ -71,6 +72,27 @@ const IMPORT_EXTENSIONS = [ "vtt", ]; +function ImportSplitButtonGroup({ + signedIn, + children, +}: { + signedIn: boolean; + children: ReactNode; +}) { + const ref = useSquircleRef(); + return ( +
+ {children} +
+ ); +} + function ProviderIcon({ provider, }: { @@ -513,11 +535,12 @@ export function MeetingImportScreen({ ) : ( - +