From 5429f6bbbd84576246eec274c2e698892f7d4137 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Thu, 21 Sep 2017 08:06:11 +0200 Subject: [PATCH] Fix @ZmagoD's remarks --- .../client_api/teams/teams_controller.rb | 2 -- .../SettingsPage/scenes/teams/new/index.jsx | 28 +++++++++++-------- .../client_api/teams/create_service.rb | 4 +-- app/services/client_api/teams_service.rb | 1 - 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/app/controllers/client_api/teams/teams_controller.rb b/app/controllers/client_api/teams/teams_controller.rb index 7ed25f78a..9d3fdfc02 100644 --- a/app/controllers/client_api/teams/teams_controller.rb +++ b/app/controllers/client_api/teams/teams_controller.rb @@ -8,8 +8,6 @@ module ClientApi locals: { teams: current_user.teams_data }) end - def new; end - def create service = ClientApi::Teams::CreateService.new( current_user: current_user, diff --git a/app/javascript/src/scenes/SettingsPage/scenes/teams/new/index.jsx b/app/javascript/src/scenes/SettingsPage/scenes/teams/new/index.jsx index a446cffd4..c7478385f 100644 --- a/app/javascript/src/scenes/SettingsPage/scenes/teams/new/index.jsx +++ b/app/javascript/src/scenes/SettingsPage/scenes/teams/new/index.jsx @@ -31,6 +31,10 @@ const Wrapper = styled.div` padding: 16px 15px 50px 15px; `; +const MyFormGroupDiv = styled.div` + margin-bottom: 15px; +`; + class SettingsNewTeam extends Component { constructor(props) { super(props); @@ -208,19 +212,19 @@ class SettingsNewTeam extends Component {
- {this.renderTeamNameFormGroup()} - - - -
-
+ + {this.renderTeamNameFormGroup()} + + + + - {this.renderTeamDescriptionFormGroup()} - - - -
-
+ + {this.renderTeamDescriptionFormGroup()} + + + +