PLT-6456 Migrate installed_commands.jsx to be pure and use Redux (#6759)

* Add documentation to props, migrate to pure component

* Migrate commands_container and installed_commands to redux

* Partially move confirm_integration to redux

* Add more props to commands_container

* Fix identation issue

* Remove unused import

* Update command token to reference redux store
Этот коммит содержится в:
94117nl
2017-06-28 09:38:57 -05:00
коммит произвёл Christopher Speller
родитель 005dd0754b
Коммит 28e0b8dc27
7 изменённых файлов: 208 добавлений и 33 удалений

Просмотреть файл

@@ -61,14 +61,14 @@ export default {
{
path: 'commands',
getComponents: (location, callback) => {
System.import('components/integrations/components/commands_container.jsx').then(RouteUtils.importComponentSuccess(callback));
System.import('components/integrations/components/commands_container').then(RouteUtils.importComponentSuccess(callback));
},
indexRoute: {onEnter: (nextState, replace) => replace(nextState.location.pathname + '/installed')},
childRoutes: [
{
path: 'installed',
getComponents: (location, callback) => {
System.import('components/integrations/components/installed_commands.jsx').then(RouteUtils.importComponentSuccess(callback));
System.import('components/integrations/components/installed_commands').then(RouteUtils.importComponentSuccess(callback));
}
},
{
@@ -86,7 +86,7 @@ export default {
{
path: 'confirm',
getComponents: (location, callback) => {
System.import('components/integrations/components/confirm_integration.jsx').then(RouteUtils.importComponentSuccess(callback));
System.import('components/integrations/components/confirm_integration').then(RouteUtils.importComponentSuccess(callback));
}
}
]
@@ -110,7 +110,7 @@ export default {
{
path: 'confirm',
getComponents: (location, callback) => {
System.import('components/integrations/components/confirm_integration.jsx').then(RouteUtils.importComponentSuccess(callback));
System.import('components/integrations/components/confirm_integration').then(RouteUtils.importComponentSuccess(callback));
}
}
]