diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2019-07-11 15:15:35 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-07-11 20:21:09 +0200 |
commit | 60226e8e297485bcbe384dc766930da0a5a1c079 (patch) | |
tree | 84140c9f6d8d0828dbe4db676f8a06a5d6b4b077 /server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx | |
parent | 7ae6f6f0968febebf763cf073b09cb6dd2b218d7 (diff) | |
download | sonarqube-60226e8e297485bcbe384dc766930da0a5a1c079.tar.gz sonarqube-60226e8e297485bcbe384dc766930da0a5a1c079.zip |
SC-704 Extract components into sonar-ui-common (#1714)
* SC-704 Extract icons components to sonar-ui-common
* Better typings for theme
* Use sonar-ui-common in extensions
* Extract some helpers
* Extract l10n helper to sonar-ui-common
* Extract requests helper to sonar-ui-common
* Extract part of urls helper
* Move buttons, Tooltips and ScreenPositionFixers
* Move modal related components
* Move IdentityProviderLink
* Move GenericAvatar
* Move SizeRating
* Move charts and move deps to peerDeps
* Move nav
* Move formatMeasure
* Move Rating
* Move PageActions
* Move the rest of ui components
* Move more controls components
* Include theme inside extension build
* Add missing theme context provider in extensions
* Update react to same version everywhere
* Update sonar-ui-common
* Update eslint configuration
Diffstat (limited to 'server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx b/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx index 824127e4810..0fba53427c9 100644 --- a/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx +++ b/server/sonar-web/src/main/js/apps/create/organization/CreateOrganization.tsx @@ -19,11 +19,17 @@ */ import * as React from 'react'; import * as classNames from 'classnames'; -import { differenceInMinutes } from 'date-fns'; +import * as differenceInMinutes from 'date-fns/difference_in_minutes'; import { times } from 'lodash'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { withRouter, WithRouterProps } from 'react-router'; +import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; +import { addWhitePageClass, removeWhitePageClass } from 'sonar-ui-common/helpers/pages'; +import { get, remove } from 'sonar-ui-common/helpers/storage'; +import { slugify } from 'sonar-ui-common/helpers/strings'; +import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; +import Tabs from 'sonar-ui-common/components/controls/Tabs'; import { createOrganization } from './actions'; import { ORGANIZATION_IMPORT_REDIRECT_TO_PROJECT_TIMESTAMP, @@ -40,8 +46,6 @@ import AutoOrganizationCreate from './AutoOrganizationCreate'; import ManualOrganizationCreate from './ManualOrganizationCreate'; import RemoteOrganizationChoose from './RemoteOrganizationChoose'; import A11ySkipTarget from '../../../app/components/a11y/A11ySkipTarget'; -import DeferredSpinner from '../../../components/common/DeferredSpinner'; -import Tabs from '../../../components/controls/Tabs'; import { whenLoggedIn } from '../../../components/hoc/whenLoggedIn'; import { withUserOrganizations } from '../../../components/hoc/withUserOrganizations'; import { deleteOrganization } from '../../organizations/actions'; @@ -55,10 +59,6 @@ import { import { getSubscriptionPlans } from '../../../api/billing'; import * as api from '../../../api/organizations'; import { hasAdvancedALMIntegration, sanitizeAlmId } from '../../../helpers/almIntegrations'; -import { translate, translateWithParameters } from '../../../helpers/l10n'; -import { addWhitePageClass, removeWhitePageClass } from '../../../helpers/pages'; -import { get, remove } from '../../../helpers/storage'; -import { slugify } from '../../../helpers/strings'; import { getOrganizationUrl } from '../../../helpers/urls'; import { skipOnboarding } from '../../../store/users'; import addGlobalSuccessMessage from '../../../app/utils/addGlobalSuccessMessage'; |