Converted CreateServer into functional component

This commit is contained in:
Alejandro Celaya
2020-03-15 10:33:23 +01:00
parent 7db222664d
commit f6baedc655
3 changed files with 55 additions and 68 deletions

View File

@@ -14,7 +14,7 @@ import ServersExporter from './ServersExporter';
const provideServices = (bottle, connect, withRouter) => {
// Components
bottle.serviceFactory('CreateServer', CreateServer, 'ImportServersBtn', 'stateFlagTimeout');
bottle.serviceFactory('CreateServer', CreateServer, 'ImportServersBtn', 'useStateFlagTimeout');
bottle.decorator('CreateServer', connect([ 'selectedServer' ], [ 'createServer', 'resetSelectedServer' ]));
bottle.serviceFactory('ServersDropdown', ServersDropdown, 'ServersExporter');