1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

Use plural component names

This commit is contained in:
Jari Bakken 2014-11-03 14:00:45 +01:00 committed by Ivar Conradi Østhus
parent ee8b9ba087
commit 034253286a
3 changed files with 11 additions and 11 deletions

View File

@ -1,17 +1,17 @@
var React = require('react');
var TabView = React.createFactory(require('./components/TabView'));
var Menu = React.createFactory(require('./components/Menu'));
var FeatureToggleComponent = React.createFactory(require('./components/feature/FeatureToggleComponent'));
var StrategyComponent = React.createFactory(require('./components/strategy/StrategyComponent'));
var React = require('react');
var TabView = React.createFactory(require('./components/TabView'));
var Menu = React.createFactory(require('./components/Menu'));
var FeatureTogglesComponent = React.createFactory(require('./components/feature/FeatureTogglesComponent'));
var StrategiesComponent = React.createFactory(require('./components/strategy/StrategiesComponent'));
var tabPanes = [
{
name: "Feature Toggles",
content: new FeatureToggleComponent({pollInterval: 5000})
content: new FeatureTogglesComponent({pollInterval: 5000})
},
{
name: "Strategies",
content: new StrategyComponent({})
content: new StrategiesComponent({})
}
];

View File

@ -5,7 +5,7 @@ var FeatureList = require('./FeatureList');
var FeatureForm = require('./FeatureForm');
var FeatureStore = require('../../stores/FeatureStore');
var FeatureToggleComponent = React.createClass({
var FeatureTogglesComponent = React.createClass({
getInitialState: function() {
return {
features: [],
@ -113,4 +113,4 @@ var FeatureToggleComponent = React.createClass({
module.exports = FeatureToggleComponent;
module.exports = FeatureTogglesComponent;

View File

@ -4,7 +4,7 @@ var React = require('react'),
strategyStore = require('../../stores/StrategyStore'),
ErrorMessages = require('../ErrorMessages');
var StrategyComponent = React.createClass({
var StrategiesComponent = React.createClass({
getInitialState: function() {
return {
createView: false,
@ -74,4 +74,4 @@ var StrategyComponent = React.createClass({
}
});
module.exports = StrategyComponent;
module.exports = StrategiesComponent;