Skip to content

Commit ecafcd4

Browse files
Deduplicate config
1 parent af99071 commit ecafcd4

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

dotcom-rendering/src/layouts/lib/furnitureLayouts.ts

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,19 @@ const tabletVanillaRows: BreakpointRows = [
4545
['body'],
4646
];
4747

48+
const desktopVanillaRows: BreakpointRows = [
49+
['title', 'right-column'],
50+
['headline', 'right-column'],
51+
['standfirst', 'right-column'],
52+
['main-media', 'right-column'],
53+
['meta', 'right-column'],
54+
['body', 'right-column'],
55+
];
56+
4857
const furnitureRowLayouts: Record<LayoutType, LayoutDefinition> = {
4958
standard: {
5059
tablet: tabletVanillaRows,
51-
desktop: [
52-
['title', 'right-column'],
53-
['headline', 'right-column'],
54-
['standfirst', 'right-column'],
55-
['main-media', 'right-column'],
56-
['meta', 'right-column'],
57-
['body', 'right-column'],
58-
],
60+
desktop: desktopVanillaRows,
5961
leftCol: [
6062
['title', 'headline', 'right-column'],
6163
['standfirst', 'right-column'],
@@ -66,15 +68,7 @@ const furnitureRowLayouts: Record<LayoutType, LayoutDefinition> = {
6668

6769
matchReport: {
6870
tablet: [['match-summary'], ...tabletVanillaRows],
69-
desktop: [
70-
['match-summary', 'right-column'],
71-
['title', 'right-column'],
72-
['headline', 'right-column'],
73-
['standfirst', 'right-column'],
74-
['main-media', 'right-column'],
75-
['meta', 'right-column'],
76-
['body', 'right-column'],
77-
],
71+
desktop: [['match-summary', 'right-column'], ...desktopVanillaRows],
7872
leftCol: [
7973
['title', 'match-summary', 'right-column'],
8074
['headline', 'right-column'],

0 commit comments

Comments
 (0)