chore: prettier + export

This commit is contained in:
Roman Hotsiy 2019-07-07 23:33:46 +03:00
parent f52d9e875b
commit 84e03e2d07
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -57,16 +57,13 @@ export class MenuItem extends React.Component<MenuItemProps> {
{item.name} {item.name}
{this.props.children} {this.props.children}
</MenuItemTitle> </MenuItemTitle>
{(item.depth > 0 && {(item.depth > 0 && item.items.length > 0 && (
item.items.length > 0 && (
<ShelfIcon float={'right'} direction={item.expanded ? 'down' : 'right'} /> <ShelfIcon float={'right'} direction={item.expanded ? 'down' : 'right'} />
)) || )) ||
null} null}
</MenuItemLabel> </MenuItemLabel>
)} )}
{!withoutChildren && {!withoutChildren && item.items && item.items.length > 0 && (
item.items &&
item.items.length > 0 && (
<MenuItems <MenuItems
expanded={item.expanded} expanded={item.expanded}
items={item.items} items={item.items}
@ -83,7 +80,7 @@ export interface OperationMenuItemContentProps {
} }
@observer @observer
class OperationMenuItemContent extends React.Component<OperationMenuItemContentProps> { export class OperationMenuItemContent extends React.Component<OperationMenuItemContentProps> {
render() { render() {
const { item } = this.props; const { item } = this.props;
return ( return (