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,22 +57,19 @@ 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 && <MenuItems
item.items.length > 0 && ( expanded={item.expanded}
<MenuItems items={item.items}
expanded={item.expanded} onActivate={this.props.onActivate}
items={item.items} />
onActivate={this.props.onActivate} )}
/>
)}
</MenuItemLi> </MenuItemLi>
); );
} }
@ -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 (