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

30 lines
634 B
JavaScript
Raw Normal View History

2016-12-03 15:54:15 +01:00
import React, { Component } from 'react';
2016-12-10 14:19:52 +01:00
import { ProgressBar } from 'react-mdl';
import { AppsLinkList, HeaderTitle } from '../common';
2016-12-03 15:54:15 +01:00
class ClientStrategies extends Component {
componentDidMount () {
2016-12-05 15:15:01 +01:00
this.props.fetchAll();
2016-12-03 15:54:15 +01:00
}
render () {
2016-12-05 15:15:01 +01:00
const {
applications,
} = this.props;
2016-12-03 15:54:15 +01:00
2016-12-05 15:15:01 +01:00
if (!applications) {
2016-12-10 14:19:52 +01:00
return <ProgressBar indeterminate />;
2016-12-05 15:15:01 +01:00
}
2016-12-03 15:54:15 +01:00
return (
<div>
<HeaderTitle title="Applications" />
2016-12-09 22:11:05 +01:00
<AppsLinkList apps={applications} />
2016-12-03 15:54:15 +01:00
</div>
);
}
}
export default ClientStrategies;