diff --git a/src/components/top-bar/top-bar.tsx b/src/components/top-bar/top-bar.tsx index b677b21f..519744d2 100644 --- a/src/components/top-bar/top-bar.tsx +++ b/src/components/top-bar/top-bar.tsx @@ -30,7 +30,7 @@ export interface Toolbar { breadcrumbs?: { title: string | React.ReactNode, path?: string; }[]; tools?: React.ReactNode; actionMenu?: ActionMenu; - toolBarExtensions?: React.ReactNode[]; + actionMenuExtensions?: React.ReactNode[]; } export interface TopBarProps extends React.Props { @@ -103,7 +103,7 @@ const renderActionMenu = (actionMenu: ActionMenu, toolBarExts: React.ReactNode[] const renderToolbar = (toolbar: Toolbar) => (
- {toolbar.actionMenu && renderActionMenu(toolbar.actionMenu, toolbar.toolBarExtensions)} + {toolbar.actionMenu && renderActionMenu(toolbar.actionMenu, toolbar.actionMenuExtensions)}
diff --git a/stories/top-bar.stories.tsx b/stories/top-bar.stories.tsx index 81e76565..f66fcb49 100644 --- a/stories/top-bar.stories.tsx +++ b/stories/top-bar.stories.tsx @@ -11,5 +11,5 @@ storiesOf('TopBar', module) alert(' here' ), title: "click here" }] } }} /> )) .add('with extension menu', () => ( - alert(' here' ), title: "click here" }] }, toolBarExtensions: [render the custom component] }} /> + alert(' here' ), title: "click here" }] }, actionMenuExtensions: [render the custom component] }} /> )); \ No newline at end of file