|  |  |  | 
|---|
|  |  |  | </SubMenu> | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return ( | 
|---|
|  |  |  | <MenuItemLink | 
|---|
|  |  |  | key={node.id} | 
|---|
|  |  |  | to={node.component} // correspond to Resource.name | 
|---|
|  |  |  | state={{ _scrollToTop: true }} | 
|---|
|  |  |  | // primaryText={translate(`resources.orders.name`, { | 
|---|
|  |  |  | //     smart_count: 2, | 
|---|
|  |  |  | // })} | 
|---|
|  |  |  | primaryText={node.name} | 
|---|
|  |  |  | leftIcon={getIcon(node.icon)} | 
|---|
|  |  |  | dense={dense} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | if (node.component) { | 
|---|
|  |  |  | return ( | 
|---|
|  |  |  | <MenuItemLink | 
|---|
|  |  |  | key={node.id} | 
|---|
|  |  |  | to={node.component} // correspond to Resource.name | 
|---|
|  |  |  | state={{ _scrollToTop: true }} | 
|---|
|  |  |  | // primaryText={translate(`resources.orders.name`, { | 
|---|
|  |  |  | //     smart_count: 2, | 
|---|
|  |  |  | // })} | 
|---|
|  |  |  | primaryText={node.name} | 
|---|
|  |  |  | leftIcon={getIcon(node.icon)} | 
|---|
|  |  |  | dense={dense} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }; | 
|---|