Skip to content

Commit

Permalink
#98
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Nov 11, 2024
1 parent 67c9df4 commit 576009c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/zeego/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zeego",
"version": "2.0.2",
"version": "2.0.3",
"description": "Logical UI primitives, made for screens.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
3 changes: 2 additions & 1 deletion packages/zeego/src/context-menu/context-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type {
MenuItemProps,
MenuSubProps,
MenuSubTriggerProps,
ContextMenuPreviewProps,
} from '../menu'
import { create } from '../menu/display-names'

Expand Down Expand Up @@ -83,7 +84,7 @@ const ItemIcon = create(
'ItemIcon'
)

const Preview = create(() => null, 'Preview')
const Preview = create<ContextMenuPreviewProps>(() => null, 'Preview')

const Arrow = create(ContextMenu.Arrow, 'Arrow')

Expand Down
6 changes: 5 additions & 1 deletion packages/zeego/src/context-menu/web/label.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as ContextMenu from '@radix-ui/react-context-menu'

import { create } from '../../menu/display-names'

const Label = create(ContextMenu.Label, 'Label')
const Label = create<React.ComponentProps<typeof ContextMenu.Label>>(
ContextMenu.Label,
'Label'
)

export { Label }
9 changes: 2 additions & 7 deletions packages/zeego/src/dropdown-menu/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ const Group = create<MenuGroupProps>(DropdownMenu.Group, 'Group')

const Separator = create(DropdownMenu.Separator, 'Separator')

const CheckboxItem = create(
({
shouldDismissMenuOnSelect,
onValueChange,
value,
...props
}: MenuCheckboxItemProps) => {
const CheckboxItem = create<MenuCheckboxItemProps>(
({ shouldDismissMenuOnSelect, onValueChange, value, ...props }) => {
return (
<DropdownMenu.CheckboxItem
{...props}
Expand Down

0 comments on commit 576009c

Please sign in to comment.