diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-12-05 17:32:18 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-12-05 20:20:59 +0100 |
commit | 41c98779d38bda9fdfdca182a5f20c73fcff9a84 (patch) | |
tree | d895a9f8bfd0276aee5ffacf7bb33a0109436cbd /server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx | |
parent | a9c22c1185c5fd8c8dc4c9388f4a3b967e3f463d (diff) | |
download | sonarqube-41c98779d38bda9fdfdca182a5f20c73fcff9a84.tar.gz sonarqube-41c98779d38bda9fdfdca182a5f20c73fcff9a84.zip |
create global type definitions (#1017)
Diffstat (limited to 'server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx b/server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx index bedc033bc09..485c9b6ac96 100644 --- a/server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx +++ b/server/sonar-web/src/main/js/components/hoc/withUserOrganizations.tsx @@ -21,17 +21,19 @@ import * as React from 'react'; import { connect } from 'react-redux'; import { Store, getMyOrganizations } from '../../store/rootReducer'; import { fetchMyOrganizations } from '../../apps/account/organizations/actions'; -import { Organization } from '../../app/types'; export function withUserOrganizations<P>( WrappedComponent: React.ComponentClass< P & { - personalOrganization?: Organization; - userOrganizations: Organization[]; + personalOrganization?: T.Organization; + userOrganizations: T.Organization[]; } > ) { - type Props = P & { fetchMyOrganizations: () => Promise<void>; userOrganizations: Organization[] }; + type Props = P & { + fetchMyOrganizations: () => Promise<void>; + userOrganizations: T.Organization[]; + }; const wrappedDisplayName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; class Wrapper extends React.Component<Props> { |