mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
31 lines
763 B
JavaScript
31 lines
763 B
JavaScript
import React, { Component } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { ProgressBar, Card } from 'react-mdl';
|
|
import { AppsLinkList, styles as commonStyles } from '../common';
|
|
|
|
class ClientStrategies extends Component {
|
|
static propTypes = {
|
|
applications: PropTypes.array,
|
|
fetchAll: PropTypes.func.isRequired,
|
|
};
|
|
|
|
componentDidMount() {
|
|
this.props.fetchAll();
|
|
}
|
|
|
|
render() {
|
|
const { applications } = this.props;
|
|
|
|
if (!applications) {
|
|
return <ProgressBar indeterminate />;
|
|
}
|
|
return (
|
|
<Card className={commonStyles.fullwidth}>
|
|
<AppsLinkList apps={applications} />
|
|
</Card>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ClientStrategies;
|