mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-28 00:17:12 +01:00
add links and fix path
This commit is contained in:
parent
73a1dcdc75
commit
c43269e9fc
@ -1,5 +1,6 @@
|
||||
import React, { Component } from 'react';
|
||||
import { DataTable, TableHeader } from 'react-mdl';
|
||||
import { Link } from 'react-router';
|
||||
|
||||
class ClientStrategies extends Component {
|
||||
|
||||
@ -13,8 +14,8 @@ class ClientStrategies extends Component {
|
||||
.filter(item => item.strategies)
|
||||
.map(item => (
|
||||
{
|
||||
appName: item.appName,
|
||||
strategies: item.strategies && item.strategies.join(', '),
|
||||
appName: <Link to={`/applications/${item.appName}`}>{item.appName}</Link>,
|
||||
strategies: item.strategies && item.strategies.map(name => (<Link to={`/strategies/${name}`}>{name}</Link>)),
|
||||
})
|
||||
);
|
||||
|
||||
|
@ -60,7 +60,7 @@ ReactDOM.render(
|
||||
<Route pageTitle=":name" path="/applications/:name" component={ApplicationView} />
|
||||
</Route>
|
||||
|
||||
<Route pageTitle="Client strategies" ppath="/client-strategies" component={ClientStrategies} />
|
||||
<Route pageTitle="Client strategies" path="/client-strategies" component={ClientStrategies} />
|
||||
</Route>
|
||||
</Router>
|
||||
</Provider>, document.getElementById('app'));
|
||||
|
Loading…
Reference in New Issue
Block a user