File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
dotcom-rendering/src/layouts Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 77} from '@guardian/source/foundations' ;
88import { Hide } from '@guardian/source/react-components' ;
99import { Fragment } from 'react' ;
10+ import { AdPlaceholder } from '../components/AdPlaceholder.apps' ;
11+ import { AdPortals } from '../components/AdPortals.importable' ;
1012import { AdSlot } from '../components/AdSlot.web' ;
1113import { AppsFooter } from '../components/AppsFooter.importable' ;
1214import { ArticleHeadline } from '../components/ArticleHeadline' ;
@@ -205,6 +207,11 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
205207 backgroundColor : themePalette ( '--article-background' ) ,
206208 } }
207209 >
210+ { isApps && renderAds && (
211+ < Island priority = "critical" >
212+ < AdPortals />
213+ </ Island >
214+ ) }
208215 < div css = { border } > Labs header</ div >
209216 < header css = { headerStyles } >
210217 < MainMediaGallery
@@ -325,6 +332,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
325332 < div css = { galleryBorder } > </ div >
326333 </ div >
327334 ) }
335+ { isApps && shouldShowAds && < AdPlaceholder /> }
328336 </ Fragment >
329337 ) ;
330338 } ) }
You can’t perform that action at this time.
0 commit comments