diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-08-29 13:05:49 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-09-13 13:53:58 +0200 |
commit | 361d9c3e6c2f2dbf10b1412789bed2095f25edcc (patch) | |
tree | 532480cb28ec553e89b9fe9d53dd001f8a68dc58 /server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.ts | |
parent | 77bd653967bee376b0e3ff3be0e6f7a5be32699e (diff) | |
download | sonarqube-361d9c3e6c2f2dbf10b1412789bed2095f25edcc.tar.gz sonarqube-361d9c3e6c2f2dbf10b1412789bed2095f25edcc.zip |
rewrite projects app
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.ts b/server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.ts new file mode 100644 index 00000000000..428e43364d3 --- /dev/null +++ b/server/sonar-web/src/main/js/apps/projects/components/PageHeaderContainer.ts @@ -0,0 +1,29 @@ +/* + * SonarQube + * Copyright (C) 2009-2017 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +import { connect } from 'react-redux'; +import PageHeader from './PageHeader'; +import { getProjects, getProjectsAppState } from '../../../store/rootReducer'; + +const mapStateToProps = (state: any) => ({ + projects: getProjects(state), + projectsAppState: getProjectsAppState(state) +}); + +export default connect<any, any, any>(mapStateToProps)(PageHeader); |