Эх сурвалжийг харах

fix: add asset prefix host

hi-cactus! 3 жил өмнө
parent
commit
1d23b614d2

+ 2 - 1
app/containers/Display/components/Container/Slide/Content.tsx

@@ -22,6 +22,7 @@ import React, { useContext, useMemo, PropsWithChildren } from 'react'
 
 import { ContainerContext } from '../ContainerContext'
 import { SlideContext } from './SlideContext'
+import { ASSETS_HOST } from 'app/globalConstants'
 
 const SlideContent: React.RefForwardingComponent<
   HTMLDivElement,
@@ -49,7 +50,7 @@ const SlideContent: React.RefForwardingComponent<
       backgroundStyle.backgroundColor = `rgba(${rgb})`
     }
     if (backgroundImage) {
-      backgroundStyle.backgroundImage = `url("${backgroundImage}")`
+      backgroundStyle.backgroundImage = `url("${ASSETS_HOST}${backgroundImage}")`
     }
     // to adjust full screen style in mobile
     const setStyleToBody =