import React, { Component } from 'react';
import { Link } from 'react-router';
import { Grid, Cell } from 'react-mdl';
class ClientStrategies extends Component {
componentDidMount () {
this.props.fetchApplication(this.props.appName);
}
render () {
if (!this.props.application) {
return
Loading application info...
;
}
const {
appName,
instances,
strategies,
seenToggles,
} = this.props.application;
return (
{appName}
Instances
{instances.map(({ instanceId }, i) => - {instanceId}
)}
|
Strategies
{/*strategies.map((name, i) => - {name}
)*/}
|
Toggles
{seenToggles.map((name, i) => -
{name}
)}
|
);
}
}
export default ClientStrategies;