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/security-hotspots/components | |
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/security-hotspots/components')
-rw-r--r-- | server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx index 6e21825714a..8a989fae4b1 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/EmptyHotspotsPage.tsx @@ -17,11 +17,12 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + import { Note } from 'design-system'; import * as React from 'react'; import DocumentationLink from '../../../components/common/DocumentationLink'; +import { Image } from '../../../components/common/Image'; import { translate } from '../../../helpers/l10n'; -import { getBaseUrl } from '../../../helpers/system'; export interface EmptyHotspotsPageProps { filtered: boolean; @@ -45,13 +46,11 @@ export default function EmptyHotspotsPage(props: EmptyHotspotsPageProps) { return ( <div className="sw-items-center sw-justify-center sw-flex-col sw-flex sw-pt-16"> - <img + <Image alt={translate('hotspots.page')} className="sw-mt-8" height={100} - src={`${getBaseUrl()}/images/${ - filtered && !filterByFile ? 'filter-large' : 'hotspot-large' - }.svg`} + src={`/images/${filtered && !filterByFile ? 'filter-large' : 'hotspot-large'}.svg`} /> <h1 className="sw-mt-10 sw-body-sm-highlight"> {translate(`hotspots.${translationRoot}.title`)} |