From 03ae3a1c235c2cf9aabeedd848218dd84467b66f Mon Sep 17 00:00:00 2001 From: "m.usman" Date: Thu, 10 Oct 2024 10:16:58 +0200 Subject: [PATCH] chore: updated leadPicId basepath in constant --- .../components/MarketplaceHeader/index.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/pages/ServiceMarketplaceDetail/components/MarketplaceHeader/index.tsx b/src/components/pages/ServiceMarketplaceDetail/components/MarketplaceHeader/index.tsx index d4d515fae..7c945ef05 100644 --- a/src/components/pages/ServiceMarketplaceDetail/components/MarketplaceHeader/index.tsx +++ b/src/components/pages/ServiceMarketplaceDetail/components/MarketplaceHeader/index.tsx @@ -19,7 +19,11 @@ ********************************************************************************/ import { useDispatch } from 'react-redux' -import { Button, Typography } from '@catena-x/portal-shared-components' +import { + Button, + Typography, + LogoGrayData, +} from '@catena-x/portal-shared-components' import { useTranslation } from 'react-i18next' import { useParams } from 'react-router-dom' import type { ServiceRequest } from 'features/serviceMarketplace/serviceApiSlice' @@ -34,7 +38,6 @@ import { } from 'features/serviceManagement/apiSlice' import { userHasPortalRole } from 'services/AccessService' import { useEffect, useState } from 'react' -import { getAssetBase } from 'services/EnvironmentService' export default function MarketplaceHeader({ item, @@ -66,7 +69,7 @@ export default function MarketplaceHeader({ useEffect(() => { if (item?.leadPictureId) { setLeadingImg() - } else setLeadImg(`${getAssetBase()}/images/content/ServiceMarketplace.png`) + } else setLeadImg(LogoGrayData) }, [item]) const getSubscribeBtn = () => {