work-in-progress atproto PDS
typescript atproto pds atcute

refactor: don't spread style on MenuTrigger

mary.my.id 24b706ce 043613c4

verified
+2 -2
+2 -2
packages/danaus/src/web/primitives/menu-trigger.tsx
··· 1 import { cloneElement } from 'hono/jsx'; 2 import type { JSX } from 'hono/jsx/jsx-runtime'; 3 ··· 20 return cloneElement(children, { 21 commandfor: menuId, 22 command: 'toggle-popover', 23 - class: `anchor ${childProps?.class ?? ''}`.trim(), 24 - style: childProps?.style, 25 }); 26 }; 27
··· 1 + import { cx } from 'cva'; 2 import { cloneElement } from 'hono/jsx'; 3 import type { JSX } from 'hono/jsx/jsx-runtime'; 4 ··· 21 return cloneElement(children, { 22 commandfor: menuId, 23 command: 'toggle-popover', 24 + class: cx('anchor', childProps?.class as string | undefined), 25 }); 26 }; 27