Skip to content

Commit 9ecaa20

Browse files
committed
Add BrandingLabel to HostedGalleryLayout
1 parent 2f72b05 commit 9ecaa20

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

dotcom-rendering/src/layouts/HostedGalleryLayout.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ const metaFlex = css`
4141

4242
export const HostedGalleryLayout = (props: WebProps | AppProps) => {
4343
const {
44-
content: {
45-
frontendData: { pageId, webTitle },
46-
},
44+
content: { frontendData },
4745
format,
4846
} = props;
4947

48+
const branding =
49+
frontendData.commercialProperties[frontendData.editionId].branding;
50+
5051
return (
5152
<>
5253
{props.renderingTarget === 'Web' ? (
@@ -61,8 +62,8 @@ export const HostedGalleryLayout = (props: WebProps | AppProps) => {
6162
element="aside"
6263
>
6364
<HostedContentHeader
64-
accentColor={sourcePalette.brand[400]}
65-
branding="logo"
65+
accentColor={branding.hostedCampaignColour}
66+
branding={branding}
6667
/>
6768
</Section>
6869
</Stuck>
@@ -103,8 +104,8 @@ export const HostedGalleryLayout = (props: WebProps | AppProps) => {
103104
defer={{ until: 'visible' }}
104105
>
105106
<ShareButton
106-
pageId={pageId}
107-
webTitle={webTitle}
107+
pageId={frontendData.pageId}
108+
webTitle={frontendData.webTitle}
108109
format={format}
109110
context="ArticleMeta"
110111
/>

0 commit comments

Comments
 (0)