Skip to content

Commit

Permalink
use DCR version of format types
Browse files Browse the repository at this point in the history
  • Loading branch information
SiAdcock committed Oct 11, 2024
1 parent 5ba77ae commit d4970f0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { css } from '@emotion/react';
import { SvgCross } from '@guardian/source/react-components';
import type { Meta, StoryFn } from '@storybook/react';
import {
ArticleDesign,
ArticleDisplay,
ArticlePillar,
Pillar as ArticlePillar,
ArticleSpecial,
} from '@guardian/libs';
import { SvgCross } from '@guardian/source/react-components';
import type { Meta, StoryFn } from '@storybook/react';
} from '../../lib/format';
import { EditorialButton } from './EditorialButton';
import type { EditorialButtonProps } from './EditorialButton';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { css } from '@emotion/react';
import { SvgCross } from '@guardian/source/react-components';
import type { Meta, StoryFn } from '@storybook/react';
import {
ArticleDesign,
ArticleDisplay,
ArticlePillar,
Pillar as ArticlePillar,
ArticleSpecial,
} from '@guardian/libs';
import { SvgCross } from '@guardian/source/react-components';
import type { Meta, StoryFn } from '@storybook/react';
} from '../../lib/format';
import { EditorialLinkButton } from './EditorialLinkButton';
import type { EditorialLinkButtonProps } from './EditorialLinkButton';

Expand Down
14 changes: 7 additions & 7 deletions dotcom-rendering/src/components/EditorialButton/styles.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import type { SerializedStyles } from '@emotion/react';
import { css } from '@emotion/react';
import type { ArticleFormat } from '@guardian/libs';
import {
ArticleDesign,
ArticleDisplay,
ArticleSpecial,
Pillar,
} from '@guardian/libs';
import {
culture,
labs,
Expand All @@ -19,6 +12,13 @@ import {
sport,
} from '@guardian/source/foundations';
import type { ButtonPriority } from '@guardian/source/react-components';
import {
ArticleDesign,
ArticleDisplay,
ArticleSpecial,
Pillar,
} from '../../lib/format';
import type { ArticleFormat } from '../../lib/format';

export const defaultFormat = {
display: ArticleDisplay.Standard,
Expand Down
5 changes: 2 additions & 3 deletions dotcom-rendering/src/components/EditorialButton/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { ArticleFormat } from '@guardian/libs';
import type { ArticleFormat } from '../../lib/format';

export interface SharedEditorialButtonProps {
/**
* A format object denoting the style of the button using the enums
* available from [@guardian/libs](https://github.com/guardian/libs/blob/main/src/format.ts).
* A format object denoting the style of the button.
*
* For example:
*
Expand Down

0 comments on commit d4970f0

Please sign in to comment.