From f487488751fdda91d120755d301f109f0175feda Mon Sep 17 00:00:00 2001 From: Rebecca Thompson <33927854+rebecca-thompson@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:42:54 +0000 Subject: [PATCH] fix import errors following https://github.com/guardian/dotcom-rendering/pull/12461 and https://github.com/guardian/dotcom-rendering/pull/12566 --- .../src/components/MultiByline.stories.tsx | 13 ++++++------- dotcom-rendering/src/components/MultiByline.tsx | 2 +- dotcom-rendering/src/components/MultiBylineItem.tsx | 12 ++++++------ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/dotcom-rendering/src/components/MultiByline.stories.tsx b/dotcom-rendering/src/components/MultiByline.stories.tsx index d088b8a768a..eca2dd43217 100644 --- a/dotcom-rendering/src/components/MultiByline.stories.tsx +++ b/dotcom-rendering/src/components/MultiByline.stories.tsx @@ -1,14 +1,13 @@ -import { - ArticleDesign, - ArticleDisplay, - ArticleSpecial, - Pillar, -} from '@guardian/libs'; +import { ArticleDisplay, ArticleSpecial, Pillar } from '@guardian/libs'; import type { Meta, StoryObj } from '@storybook/react'; import { centreColumnDecorator } from '../../.storybook/decorators/gridDecorators'; import { allModes } from '../../.storybook/modes'; import { images } from '../../fixtures/generated/images'; -import { getAllDesigns, getAllThemes } from '../lib/format'; +import { + ArticleDesign, + getAllDesigns, + getAllThemes, +} from '../lib/articleFormat'; import { RenderArticleElement } from '../lib/renderElement'; import type { TextBlockElement } from '../types/content'; import { MultiByline } from './MultiByline'; diff --git a/dotcom-rendering/src/components/MultiByline.tsx b/dotcom-rendering/src/components/MultiByline.tsx index 10fe5080ccd..fe544a757cb 100644 --- a/dotcom-rendering/src/components/MultiByline.tsx +++ b/dotcom-rendering/src/components/MultiByline.tsx @@ -1,6 +1,6 @@ import { css } from '@emotion/react'; -import type { ArticleFormat } from '@guardian/libs'; import { palette } from '@guardian/source/foundations'; +import type { ArticleFormat } from '../lib/articleFormat'; import type { EditionId } from '../lib/edition'; import type { ArticleElementRenderer } from '../lib/renderElement'; import type { ServerSideTests, Switches } from '../types/config'; diff --git a/dotcom-rendering/src/components/MultiBylineItem.tsx b/dotcom-rendering/src/components/MultiBylineItem.tsx index d99d01e3e4f..6c21b22a213 100644 --- a/dotcom-rendering/src/components/MultiBylineItem.tsx +++ b/dotcom-rendering/src/components/MultiBylineItem.tsx @@ -1,10 +1,4 @@ import { css } from '@emotion/react'; -import { - ArticleDesign, - ArticleDisplay, - type ArticleFormat, - ArticleSpecial, -} from '@guardian/libs'; import { from, headlineLightItalic24, @@ -21,6 +15,12 @@ import { textSansItalic17, } from '@guardian/source/foundations'; import sanitise from 'sanitize-html'; +import { + ArticleDesign, + ArticleDisplay, + type ArticleFormat, + ArticleSpecial, +} from '../lib/articleFormat'; import { slugify } from '../model/enhance-H2s'; import { palette } from '../palette'; import type { MultiBylineItem as MultiBylineItemModel } from '../types/content';