diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2021-08-17 15:50:55 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-08-20 20:03:08 +0000 |
commit | 6ef7ca151ecd602ca8e9cea21743a895a81e89ba (patch) | |
tree | 40d7a97a8075b416901a4078638e4cde9ee15942 /server/sonar-web/src/main/js/apps/projectKey | |
parent | 2454e077b1d77d70508dcce6a5b015d4a69f41fa (diff) | |
download | sonarqube-6ef7ca151ecd602ca8e9cea21743a895a81e89ba.tar.gz sonarqube-6ef7ca151ecd602ca8e9cea21743a895a81e89ba.zip |
SONAR-15297 Move sonar-ui-common code to sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectKey')
3 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectKey/Key.tsx b/server/sonar-web/src/main/js/apps/projectKey/Key.tsx index fca0e4459b0..6458a99d296 100644 --- a/server/sonar-web/src/main/js/apps/projectKey/Key.tsx +++ b/server/sonar-web/src/main/js/apps/projectKey/Key.tsx @@ -20,9 +20,9 @@ import * as React from 'react'; import { Helmet } from 'react-helmet-async'; import { withRouter, WithRouterProps } from 'react-router'; -import { translate } from 'sonar-ui-common/helpers/l10n'; import { changeKey } from '../../api/components'; import RecentHistory from '../../app/components/RecentHistory'; +import { translate } from '../../sonar-ui-common/helpers/l10n'; import UpdateForm from './UpdateForm'; interface Props { diff --git a/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx b/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx index ea8d214f890..63eaf48076f 100644 --- a/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx +++ b/server/sonar-web/src/main/js/apps/projectKey/UpdateForm.tsx @@ -18,12 +18,12 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { Button, SubmitButton } from 'sonar-ui-common/components/controls/buttons'; -import ConfirmButton from 'sonar-ui-common/components/controls/ConfirmButton'; -import MandatoryFieldsExplanation from 'sonar-ui-common/components/ui/MandatoryFieldsExplanation'; -import { translate, translateWithParameters } from 'sonar-ui-common/helpers/l10n'; import ProjectKeyInput from '../../components/common/ProjectKeyInput'; import { validateProjectKey } from '../../helpers/projects'; +import { Button, SubmitButton } from '../../sonar-ui-common/components/controls/buttons'; +import ConfirmButton from '../../sonar-ui-common/components/controls/ConfirmButton'; +import MandatoryFieldsExplanation from '../../sonar-ui-common/components/ui/MandatoryFieldsExplanation'; +import { translate, translateWithParameters } from '../../sonar-ui-common/helpers/l10n'; import { ProjectKeyValidationResult } from '../../types/component'; export interface UpdateFormProps { diff --git a/server/sonar-web/src/main/js/apps/projectKey/__tests__/UpdateForm-test.tsx b/server/sonar-web/src/main/js/apps/projectKey/__tests__/UpdateForm-test.tsx index fcc6c8db9a5..fce8a5e10e6 100644 --- a/server/sonar-web/src/main/js/apps/projectKey/__tests__/UpdateForm-test.tsx +++ b/server/sonar-web/src/main/js/apps/projectKey/__tests__/UpdateForm-test.tsx @@ -19,10 +19,10 @@ */ import { shallow, ShallowWrapper } from 'enzyme'; import * as React from 'react'; -import { Button, SubmitButton } from 'sonar-ui-common/components/controls/buttons'; -import { click } from 'sonar-ui-common/helpers/testUtils'; import ProjectKeyInput from '../../../components/common/ProjectKeyInput'; import { mockComponent, mockEvent } from '../../../helpers/testMocks'; +import { Button, SubmitButton } from '../../../sonar-ui-common/components/controls/buttons'; +import { click } from '../../../sonar-ui-common/helpers/testUtils'; import UpdateForm, { UpdateFormProps } from '../UpdateForm'; it('should render', () => { |