Skip to content

Commit e0781ed

Browse files
committed
add adds for gallery in the app
1 parent 1e0f774 commit e0781ed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dotcom-rendering/src/layouts/GalleryLayout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
} from '@guardian/source/foundations';
88
import { Hide } from '@guardian/source/react-components';
99
import { Fragment } from 'react';
10+
import { AdPlaceholder } from '../components/AdPlaceholder.apps';
11+
import { AdPortals } from '../components/AdPortals.importable';
1012
import { AdSlot } from '../components/AdSlot.web';
1113
import { AppsFooter } from '../components/AppsFooter.importable';
1214
import { 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
})}

0 commit comments

Comments
 (0)