Skip to content

Commit

Permalink
Merge pull request #1810 from Hoodrobinrs/Menubar-Toolbar-types-fix
Browse files Browse the repository at this point in the history
Fixed #1809 prop types on Menubar / Toolbar, to accept JSX.Element type
  • Loading branch information
mertsincan authored Mar 3, 2021
2 parents f634656 + 4dffe3f commit 84667a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/menubar/Menubar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ interface MenubarProps {
model?: MenuItem[];
style?: object;
className?: string;
start?: ((props: object) => any | any);
end?: ((props: object) => any | any)
start?: ((props: object) => any | any) | JSX.Element;
end?: ((props: object) => any | any) | JSX.Element;
}

export class Menubar extends React.Component<MenubarProps,any> {}
4 changes: 2 additions & 2 deletions src/components/toolbar/Toolbar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ interface ToolbarProps {
id?: string;
style?: object;
className?: string;
left?:((props: object) => any | any);
right?:((props: object) => any | any);
left?:((props: object) => any | any) | JSX.Element;
right?:((props: object) => any | any) | JSX.Element;
}

export class Toolbar extends React.Component<ToolbarProps,any> {}

0 comments on commit 84667a2

Please sign in to comment.