mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
30 lines
634 B
JavaScript
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;
|