From 17a365652a0394208810bc3c791e45c6895f965a Mon Sep 17 00:00:00 2001 From: Charlotte Date: Tue, 19 Nov 2024 11:56:30 +0000 Subject: [PATCH] rename metadata type --- dotcom-rendering/src/model/decideContainerPalette.ts | 4 ++-- dotcom-rendering/src/types/front.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dotcom-rendering/src/model/decideContainerPalette.ts b/dotcom-rendering/src/model/decideContainerPalette.ts index 9beeb569bf..d01bfa369a 100644 --- a/dotcom-rendering/src/model/decideContainerPalette.ts +++ b/dotcom-rendering/src/model/decideContainerPalette.ts @@ -3,10 +3,10 @@ * Utility function to convert between FE and DCR container palettes */ -import type { DCRContainerPalette, FEMetadata } from '../types/front'; +import type { DCRContainerPalette, FEContainerMetadata } from '../types/front'; export const decideContainerPalette = ( - metadata?: FEMetadata[], + metadata?: FEContainerMetadata[], options?: { canBeBranded?: boolean }, ): DCRContainerPalette | undefined => { if (metadata?.includes('EventPalette')) return 'EventPalette'; diff --git a/dotcom-rendering/src/types/front.ts b/dotcom-rendering/src/types/front.ts index 8e757c0101..0f481e2bae 100644 --- a/dotcom-rendering/src/types/front.ts +++ b/dotcom-rendering/src/types/front.ts @@ -105,7 +105,7 @@ type FEContainerType = export type FEContainerLevel = 'Primary' | 'Secondary'; -export type FEMetadata = +export type FEContainerMetadata = | 'EventPalette' | 'SombreAltPalette' | 'EventAltPalette' @@ -369,7 +369,7 @@ export type DCRSnapType = { type FECollectionConfigType = { displayName: string; - metadata?: { type: FEMetadata }[]; + metadata?: { type: FEContainerMetadata }[]; collectionType: FEContainerType; collectionLevel?: FEContainerLevel; href?: string;