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
···
0
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),
0
25
});
26
};
27