diff --git a/src/index.ts b/src/index.ts index b5ffa8b..a5ee178 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,5 +22,6 @@ function addView(...widgets: (Page | Action | SearchAction)[]) { } export default addView; +export * from "./modal"; export * from "./navigation"; -export * from "./preference"; +export * from "./preference"; \ No newline at end of file diff --git a/src/navigation/menu.ts b/src/navigation/menu.ts index 158d4b6..a23e1e0 100644 --- a/src/navigation/menu.ts +++ b/src/navigation/menu.ts @@ -37,7 +37,7 @@ class MenuItem extends Composite { export type { MenuItemOf }; export function menuDrawer( - menu: MenuOption, + menus: IMenuItemOption[], eventSelectMenu: (menu: MenuItem) => void ) { const layoutMenu = ScrollView({ @@ -47,8 +47,7 @@ export function menuDrawer( right: 0, bottom: 0, }).append( - (Object.keys(menu) as string[]).map((key: string) => { - const data = menu[key]; + menus.map((data: IMenuItemOption) => { const row = Row({ layoutData: "stretch", alignment: "centerY",