Skip to content

Commit

Permalink
Fixed #780 - propTypes error using new iconsTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Feb 28, 2019
1 parent 731da1f commit 9362517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/sidebar/Sidebar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface SidebarProps {
baseZIndex?: number;
dismissable?: boolean;
showCloseIcon?: boolean;
iconsTemplate?(): JSX.Element;
iconsTemplate?(): JSX.Element | undefined;
modal?: boolean;
onShow?(): void;
onHide(): void;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Sidebar extends Component {
baseZIndex: PropTypes.number,
dismissable: PropTypes.bool,
showCloseIcon: PropTypes.bool,
iconsTemplate: PropTypes.element,
iconsTemplate: PropTypes.func,
modal: PropTypes.bool,
onShow: PropTypes.func,
onHide: PropTypes.func.isRequired
Expand Down

0 comments on commit 9362517

Please sign in to comment.