1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/component/application/application-list-component.js
2016-12-10 14:19:52 +01:00

30 lines
634 B
JavaScript

import React, { Component } from 'react';
import { ProgressBar } from 'react-mdl';
import { AppsLinkList, HeaderTitle } from '../common';
class ClientStrategies extends Component {
componentDidMount () {
this.props.fetchAll();
}
render () {
const {
applications,
} = this.props;
if (!applications) {
return <ProgressBar indeterminate />;
}
return (
<div>
<HeaderTitle title="Applications" />
<AppsLinkList apps={applications} />
</div>
);
}
}
export default ClientStrategies;