Skip to content

Commit

Permalink
chore: updated leadPicId basepath in constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Usmanfee committed Oct 10, 2024
1 parent 874e70d commit 03ae3a1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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,
Expand Down Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 03ae3a1

Please sign in to comment.