From 873fe05a5d5f9ee401bd81a56c213c658a678e81 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 26 Jul 2018 18:00:30 +0300 Subject: [PATCH] chore: SideMenu accept className --- src/components/SideMenu/MenuItems.tsx | 5 ++++- src/components/SideMenu/SideMenu.tsx | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/SideMenu/MenuItems.tsx b/src/components/SideMenu/MenuItems.tsx index c980a2e0..f36a2c89 100644 --- a/src/components/SideMenu/MenuItems.tsx +++ b/src/components/SideMenu/MenuItems.tsx @@ -12,15 +12,18 @@ export interface MenuItemsProps { onActivate?: (item: IMenuItem) => void; style?: React.CSSProperties; root?: boolean; + + className?: string; } @observer export class MenuItems extends React.Component { render() { - const { items, root } = this.props; + const { items, root, className } = this.props; const active = this.props.active == null ? true : this.props.active; return ( { +export class SideMenu extends React.Component<{ menu: MenuStore; className?: string }> { private _updateScroll?: () => void; render() { @@ -19,6 +19,7 @@ export class SideMenu extends React.Component<{ menu: MenuStore }> { {options => options.nativeScrollbars ? ( { root={true} /> ) : ( - +