diff --git a/frontend/src/component/application/application-edit-component.js b/frontend/src/component/application/application-edit-component.js
index fa679fe2f2..31e63dd682 100644
--- a/frontend/src/component/application/application-edit-component.js
+++ b/frontend/src/component/application/application-edit-component.js
@@ -1,15 +1,15 @@
-import React, { Component } from 'react';
+import React, { PureComponent } from 'react';
import { Link } from 'react-router';
import { Grid, Cell } from 'react-mdl';
-class ClientStrategies extends Component {
+class ClientStrategies extends PureComponent {
componentDidMount () {
this.props.fetchApplication(this.props.appName);
}
- render () {
+ render () {
if (!this.props.application) {
return
Loading application info...
;
}
@@ -19,11 +19,10 @@ class ClientStrategies extends Component {
strategies,
seenToggles,
} = this.props.application;
-
+
return (
{appName}
-
Instances
@@ -32,9 +31,15 @@ class ClientStrategies extends Component {
|
- Strategies
+ Implemented strategies
- {/*strategies.map((name, i) => - {name}
)*/}
+ {strategies.map((name, i) => (
+ -
+
+ {name}
+
+
+ ))}
|
diff --git a/frontend/src/index.jsx b/frontend/src/index.jsx
index 905c9c3dfd..376f432bca 100644
--- a/frontend/src/index.jsx
+++ b/frontend/src/index.jsx
@@ -13,6 +13,7 @@ import Features from './page/features';
import CreateFeatureToggle from './page/features/create';
import EditFeatureToggle from './page/features/edit';
import Strategies from './page/strategies';
+import StrategyView from './page/strategies/show';
import CreateStrategies from './page/strategies/create';
import HistoryPage from './page/history';
import HistoryTogglePage from './page/history/toggle';
@@ -38,6 +39,7 @@ ReactDOM.render(
+
diff --git a/frontend/src/page/strategies/show.js b/frontend/src/page/strategies/show.js
new file mode 100644
index 0000000000..175c81a3d9
--- /dev/null
+++ b/frontend/src/page/strategies/show.js
@@ -0,0 +1,7 @@
+import React from 'react';
+
+const render = ({ params }) => (
+ Show details of strategy: {params.strategyName} (applications implementing it, toggles using it etc)!
+);
+
+export default render;
|