diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-08-10 16:02:22 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-10 20:21:32 +0200 |
commit | d3530ff0004d44a2c4e9140ff9cc7774b8bc38a4 (patch) | |
tree | 03ad7aa9ab7d9bcfb0f5b354149da9c014052010 /server/sonar-web/src/main/js/apps/organizations | |
parent | 29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d (diff) | |
download | sonarqube-d3530ff0004d44a2c4e9140ff9cc7774b8bc38a4.tar.gz sonarqube-d3530ff0004d44a2c4e9140ff9cc7774b8bc38a4.zip |
update main dependencies & fix autofixable eslint warnings (#601)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizations')
4 files changed, 18 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationDelete.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationDelete.tsx index 4625032fcdd..c1aac8ef5d6 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationDelete.tsx +++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationDelete.tsx @@ -128,6 +128,7 @@ export class OrganizationDelete extends React.PureComponent<Props, State> { const mapDispatchToProps: DispatchToProps = { deleteOrganization: deleteOrganization as any }; -export default connect<null, DispatchToProps, OwnProps>(null, mapDispatchToProps)( - OrganizationDelete -); +export default connect<null, DispatchToProps, OwnProps>( + null, + mapDispatchToProps +)(OrganizationDelete); diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx index af96e5ec02f..a81cbe614d3 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx +++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationEdit.tsx @@ -197,4 +197,7 @@ export class OrganizationEdit extends React.PureComponent<Props, State> { const mapDispatchToProps = { updateOrganization: updateOrganization as any }; -export default connect<{}, DispatchProps, OwnProps>(null, mapDispatchToProps)(OrganizationEdit); +export default connect<{}, DispatchProps, OwnProps>( + null, + mapDispatchToProps +)(OrganizationEdit); diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx index cbc1d9d0d98..01226a51009 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx +++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationMembersContainer.tsx @@ -43,7 +43,7 @@ interface OwnProps { interface StateProps { memberLogins: string[]; members: OrganizationMember[]; - organization?: Organization; + organization: Organization; organizationGroups: Group[]; status: { loading?: boolean; total?: number; pageIndex?: number; query?: string }; } @@ -68,7 +68,7 @@ const mapStateToProps = (state: any, ownProps: OwnProps): StateProps => { return { memberLogins, members: getUsersByLogins(state, memberLogins), - organization: getOrganizationByKey(state, organizationKey), + organization: getOrganizationByKey(state, organizationKey)!, organizationGroups: getOrganizationGroupsByKey(state, organizationKey), status: getOrganizationMembersState(state, organizationKey) }; @@ -83,6 +83,7 @@ const mapDispatchToProps = { updateOrganizationMemberGroups }; -export default connect<StateProps, DispatchProps, OwnProps>(mapStateToProps, mapDispatchToProps)( - OrganizationMembers -); +export default connect<StateProps, DispatchProps, OwnProps>( + mapStateToProps, + mapDispatchToProps +)(OrganizationMembers); diff --git a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.tsx b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.tsx index 44daa37abea..41981090047 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.tsx +++ b/server/sonar-web/src/main/js/apps/organizations/components/OrganizationPage.tsx @@ -118,6 +118,7 @@ const mapStateToProps = (state: any, ownProps: OwnProps) => ({ const mapDispatchToProps = { fetchOrganization: fetchOrganization as any }; -export default connect<StateProps, DispatchToProps, OwnProps>(mapStateToProps, mapDispatchToProps)( - OrganizationPage -); +export default connect<StateProps, DispatchToProps, OwnProps>( + mapStateToProps, + mapDispatchToProps +)(OrganizationPage); |