mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
25 lines
471 B
JavaScript
25 lines
471 B
JavaScript
|
import React, { Component } from 'react';
|
||
|
|
||
|
class ClientStrategies extends Component {
|
||
|
|
||
|
componentDidMount () {
|
||
|
this.props.fetchApplications();
|
||
|
}
|
||
|
|
||
|
render () {
|
||
|
if (!this.props.applications) {
|
||
|
return null;
|
||
|
}
|
||
|
const source = this.props.applications.map(item => item.appName).join(', ');
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
{source}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
export default ClientStrategies;
|