diff options
author | David Cho-Lerat <david.cho-lerat@sonarsource.com> | 2024-03-15 18:24:42 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-03-18 20:02:30 +0000 |
commit | 03600808205c4f6df77713dbd40ee0a6e9c25a48 (patch) | |
tree | 8c90b9014c31a1715c5b59e8ef4eab1b53a422e7 /server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx | |
parent | 8c71dbf2097fc53ae83a2d54be5099f5cfbd76f4 (diff) | |
download | sonarqube-03600808205c4f6df77713dbd40ee0a6e9c25a48.tar.gz sonarqube-03600808205c4f6df77713dbd40ee0a6e9c25a48.zip |
SONAR-21867 Create Image component with baseUrl
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx index 5d7c9e57d97..85e45472453 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/ProjectCreationMenuItem.tsx @@ -17,10 +17,11 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import { ItemLink } from 'design-system'; import * as React from 'react'; +import { Image } from '../../../components/common/Image'; import { translate } from '../../../helpers/l10n'; -import { getBaseUrl } from '../../../helpers/system'; import { queryToSearch } from '../../../helpers/urls'; import { AlmKeys } from '../../../types/alm-settings'; @@ -40,12 +41,7 @@ export default function ProjectCreationMenuItem(props: ProjectCreationMenuItemPr to={{ pathname: '/projects/create', search: queryToSearch({ mode: alm }) }} > {alm !== 'manual' && ( - <img - alt={alm} - className="sw-mr-2" - width={16} - src={`${getBaseUrl()}/images/alm/${almIcon}.svg`} - /> + <Image alt={alm} className="sw-mr-2" width={16} src={`/images/alm/${almIcon}.svg`} /> )} {translate('my_account.add_project', alm)} </ItemLink> |