Skip to content

Commit 0dc0e8c

Browse files
committed
Refactor to follow same code style
1 parent 663e892 commit 0dc0e8c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dotcom-rendering/src/components/Branding.importable.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ const liveBlogLabelStyle = css`
6868
}
6969
`;
7070

71+
const galleryLabelStyle = css`
72+
${textSansBold12}
73+
`;
74+
7175
const brandingLogoAdvertisingPartnerStyle = css`
7276
padding: 0;
7377
& img {
@@ -209,6 +213,7 @@ type Props = {
209213
export const Branding = ({ branding, format }: Props) => {
210214
const isLiveBlog = format.design === ArticleDesign.LiveBlog;
211215
const isInteractive = format.design === ArticleDesign.Interactive;
216+
const isGallery = format.design === ArticleDesign.Gallery;
212217

213218
const { ophanComponentName, ophanComponentLink } = getOphanComponents({
214219
branding,
@@ -236,10 +241,7 @@ export const Branding = ({ branding, format }: Props) => {
236241
<div
237242
css={[
238243
labelStyle,
239-
format.design === ArticleDesign.Gallery &&
240-
css`
241-
${textSansBold12}
242-
`,
244+
isGallery && galleryLabelStyle,
243245
isAdvertisingPartnerOrExclusive &&
244246
labelAdvertisingPartnerStyle,
245247
isLiveBlog && liveBlogLabelStyle,

0 commit comments

Comments
 (0)