mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
19 lines
618 B
JavaScript
19 lines
618 B
JavaScript
|
const React = require('react');
|
||
|
const { List, ListItem, ListItemContent } = require('react-mdl');
|
||
|
const { Link } = require('react-router');
|
||
|
|
||
|
export const AppsLinkList = ({ apps }) => (
|
||
|
<List style={{ textAlign: 'left' }}>
|
||
|
{apps.length > 0 && apps.map(({ appName, description = '-', icon = 'apps' }) => (
|
||
|
<ListItem twoLine key={appName}>
|
||
|
<ListItemContent avatar={icon} subtitle={description}>
|
||
|
<Link key={appName} to={`/applications/${appName}`}>
|
||
|
{appName}
|
||
|
</Link>
|
||
|
</ListItemContent>
|
||
|
</ListItem>
|
||
|
))}
|
||
|
</List>
|
||
|
);
|
||
|
|