2016-12-03 15:54:15 +01:00
|
|
|
import React, { Component } from 'react';
|
2017-01-23 09:13:38 +01:00
|
|
|
import { ProgressBar, Grid, Cell } from 'react-mdl';
|
2016-12-10 11:47:25 +01:00
|
|
|
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 (
|
2017-01-23 09:13:38 +01:00
|
|
|
<Grid className="mdl-color--white">
|
|
|
|
<Cell col={12}>
|
|
|
|
<HeaderTitle title="Applications" />
|
|
|
|
<AppsLinkList apps={applications} />
|
|
|
|
</Cell>
|
|
|
|
</Grid>
|
2016-12-03 15:54:15 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default ClientStrategies;
|