tangled
alpha
login
or
join now
mary.my.id
/
danaus
4
fork
atom
work-in-progress atproto PDS
typescript
atproto
pds
atcute
4
fork
atom
overview
issues
pulls
pipelines
refactor: don't spread style on MenuTrigger
mary.my.id
2 months ago
24b706ce
043613c4
verified
This commit was signed with the committer's
known signature
.
mary.my.id
SSH Key Fingerprint:
SHA256:ZlTP/auFSGpGnaoDg4mCTG1g9OZvXp62jWR4c6H4O3c=
+2
-2
1 changed file
expand all
collapse all
unified
split
packages
danaus
src
web
primitives
menu-trigger.tsx
+2
-2
packages/danaus/src/web/primitives/menu-trigger.tsx
···
1
1
+
import { cx } from 'cva';
1
2
import { cloneElement } from 'hono/jsx';
2
3
import type { JSX } from 'hono/jsx/jsx-runtime';
3
4
···
20
21
return cloneElement(children, {
21
22
commandfor: menuId,
22
23
command: 'toggle-popover',
23
23
-
class: `anchor ${childProps?.class ?? ''}`.trim(),
24
24
-
style: childProps?.style,
24
24
+
class: cx('anchor', childProps?.class as string | undefined),
25
25
});
26
26
};
27
27