mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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 React, { Component } from 'react';
 | 
				
			||||||
import { DataTable, TableHeader }  from 'react-mdl';
 | 
					import { DataTable, TableHeader }  from 'react-mdl';
 | 
				
			||||||
 | 
					import { Link } from 'react-router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ClientStrategies extends Component {
 | 
					class ClientStrategies extends Component {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -13,8 +14,8 @@ class ClientStrategies extends Component {
 | 
				
			|||||||
        .filter(item => item.strategies)
 | 
					        .filter(item => item.strategies)
 | 
				
			||||||
        .map(item => (
 | 
					        .map(item => (
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                appName: item.appName,
 | 
					                appName: <Link to={`/applications/${item.appName}`}>{item.appName}</Link>,
 | 
				
			||||||
                strategies: item.strategies && item.strategies.join(', '),
 | 
					                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 pageTitle=":name" path="/applications/:name" component={ApplicationView} />
 | 
				
			||||||
                </Route>
 | 
					                </Route>
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                <Route pageTitle="Client strategies" ppath="/client-strategies" component={ClientStrategies} />
 | 
					                <Route pageTitle="Client strategies" path="/client-strategies" component={ClientStrategies} />
 | 
				
			||||||
            </Route>
 | 
					            </Route>
 | 
				
			||||||
        </Router>
 | 
					        </Router>
 | 
				
			||||||
    </Provider>, document.getElementById('app'));
 | 
					    </Provider>, document.getElementById('app'));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user