Skip to content

Commit

Permalink
rename metadata type
Browse files Browse the repository at this point in the history
  • Loading branch information
cemms1 committed Nov 19, 2024
1 parent 83e0169 commit 17a3656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dotcom-rendering/src/model/decideContainerPalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions dotcom-rendering/src/types/front.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type FEContainerType =

export type FEContainerLevel = 'Primary' | 'Secondary';

export type FEMetadata =
export type FEContainerMetadata =
| 'EventPalette'
| 'SombreAltPalette'
| 'EventAltPalette'
Expand Down Expand Up @@ -369,7 +369,7 @@ export type DCRSnapType = {

type FECollectionConfigType = {
displayName: string;
metadata?: { type: FEMetadata }[];
metadata?: { type: FEContainerMetadata }[];
collectionType: FEContainerType;
collectionLevel?: FEContainerLevel;
href?: string;
Expand Down

0 comments on commit 17a3656

Please # to comment.