Skip to content

Commit c70ed8c

Browse files
author
Thomas Draier
authored
TECH-233: Optional props (#248)
1 parent bd583cb commit c70ed8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui-extender/src/actions/menuAction/menuAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ type MenuState = {
242242
isOpen: boolean,
243243
isInMenu: boolean,
244244
isSubMenu: boolean,
245-
subMenuContext: MenuContext,
245+
subMenuContext?: MenuContext,
246246
loadingItems: string[],
247247
loadedItems: string[]
248248
}
@@ -378,7 +378,7 @@ export type MenuActionComponentProps = {
378378
/**
379379
* Helps determine if action is visible
380380
*/
381-
visibilityPredicate: (state: MenuState) => boolean
381+
visibilityPredicate?: (state: MenuState) => boolean
382382
}
383383

384384
const MenuActionComponent = (props: MenuActionComponentProps) => {

0 commit comments

Comments
 (0)