1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/application/application-list-component.js
2018-02-04 22:16:04 +01:00

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;