Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lerte committed Nov 14, 2024
1 parent d269447 commit bb59eee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions apps/docs/src/usages/menus.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon, IconButton, Item, Menu, Section } from 'actify'
import { Icon, IconButton, Menu, MenuItem, MenuSection } from 'actify'

import React from 'react'

Expand All @@ -10,18 +10,18 @@ export default () => {
label="Open with label"
onAction={(key) => alert(key)}
>
<Section>
<Item key="edit">Edit…</Item>
<Item key="duplicate">Duplicate</Item>
</Section>
<Section>
<Item key="move">Move…</Item>
<Item key="rename">Rename…</Item>
</Section>
<Section>
<Item key="archive">Archive</Item>
<Item key="delete">Delete…</Item>
</Section>
<MenuSection>
<MenuItem key="edit">Edit…</MenuItem>
<MenuItem key="duplicate">Duplicate</MenuItem>
</MenuSection>
<MenuSection>
<MenuItem key="move">Move…</MenuItem>
<MenuItem key="rename">Rename…</MenuItem>
</MenuSection>
<MenuSection>
<MenuItem key="archive">Archive</MenuItem>
<MenuItem key="delete">Delete…</MenuItem>
</MenuSection>
</Menu>
<Menu
activator={(ref, menuTriggerProps) => (
Expand All @@ -31,9 +31,9 @@ export default () => {
)}
onAction={(key) => alert(key)}
>
<Item key="copy">Copy</Item>
<Item key="cut">Cut</Item>
<Item key="paste">Paste</Item>
<MenuItem key="copy">Copy</MenuItem>
<MenuItem key="cut">Cut</MenuItem>
<MenuItem key="paste">Paste</MenuItem>
</Menu>
</div>
)
Expand Down
4 changes: 2 additions & 2 deletions packages/actify/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Icon = ({ className, children, fill, ...rest }: IconProps) => {
{...rest}
className={clsx(
styles['icon'],
fill ? styles['icon-filled'] : undefined,
fill && styles['icon-filled'],
className
)}
>
Expand All @@ -42,4 +42,4 @@ const Icon = ({ className, children, fill, ...rest }: IconProps) => {

Icon.displayName = 'Actify.Icon'

export { Icon }
export { Icon }
2 changes: 1 addition & 1 deletion packages/actify/src/components/Menus/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { Menu } from './Menu'

export { Item, Section } from 'react-stately'
export { Item as MenuItem, Section as MenuSection } from 'react-stately'

0 comments on commit bb59eee

Please sign in to comment.