mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-09 01:17:06 +02:00
fix: resolve lifecycle image from asset path (#9121)
This commit is contained in:
parent
666b5b7000
commit
874aeacca1
@ -23,6 +23,7 @@ import LinearScaleIcon from '@mui/icons-material/LinearScale';
|
|||||||
import MonitorHeartIcon from '@mui/icons-material/MonitorHeartOutlined';
|
import MonitorHeartIcon from '@mui/icons-material/MonitorHeartOutlined';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { useHighlightContext } from 'component/common/Highlight/HighlightContext';
|
import { useHighlightContext } from 'component/common/Highlight/HighlightContext';
|
||||||
|
import { formatAssetPath } from 'utils/formatPath';
|
||||||
|
|
||||||
const StyledNewInUnleash = styled('div')(({ theme }) => ({
|
const StyledNewInUnleash = styled('div')(({ theme }) => ({
|
||||||
margin: theme.spacing(2, 0, 1, 0),
|
margin: theme.spacing(2, 0, 1, 0),
|
||||||
@ -109,7 +110,7 @@ export const NewInUnleash = ({
|
|||||||
icon: <MonitorHeartIcon color='primary' />,
|
icon: <MonitorHeartIcon color='primary' />,
|
||||||
preview: (
|
preview: (
|
||||||
<StyledImg
|
<StyledImg
|
||||||
src={LifecycleStagesImage}
|
src={formatAssetPath(LifecycleStagesImage)}
|
||||||
alt='Define → Develop → Production → Cleanup → Archived'
|
alt='Define → Develop → Production → Cleanup → Archived'
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user