diff --git a/.changeset/quick-carrots-open.md b/.changeset/quick-carrots-open.md new file mode 100644 index 0000000000..7cde586e64 --- /dev/null +++ b/.changeset/quick-carrots-open.md @@ -0,0 +1,5 @@ +--- +'@backstage/canon': patch +--- + +Fix types on the Icon component. diff --git a/packages/canon/report.api.md b/packages/canon/report.api.md index e3d55339ea..6dfbc59ffb 100644 --- a/packages/canon/report.api.md +++ b/packages/canon/report.api.md @@ -13,6 +13,7 @@ import { default as React_2 } from 'react'; import * as React_3 from 'react'; import { ReactNode } from 'react'; import { RefAttributes } from 'react'; +import type { RemixiconComponentType } from '@remixicon/react'; import { ScrollArea as ScrollArea_2 } from '@base-ui-components/react/scroll-area'; import { Tooltip as Tooltip_2 } from '@base-ui-components/react/tooltip'; @@ -636,7 +637,7 @@ export interface IconContextProps { } // @public (undocumented) -export type IconMap = Partial>; +export type IconMap = Partial>; // @public (undocumented) export type IconNames = @@ -711,7 +712,7 @@ export interface IconProviderProps { // (undocumented) children?: ReactNode; // (undocumented) - overrides?: Partial>; + overrides?: Partial>; } // @public (undocumented) diff --git a/packages/canon/src/components/Heading/Heading.stories.tsx b/packages/canon/src/components/Heading/Heading.stories.tsx index b4c0ab7546..4b1d06aebd 100644 --- a/packages/canon/src/components/Heading/Heading.stories.tsx +++ b/packages/canon/src/components/Heading/Heading.stories.tsx @@ -18,7 +18,6 @@ import React from 'react'; import type { Meta, StoryObj } from '@storybook/react'; import { Heading } from './Heading'; import { Flex } from '../Flex'; -import { Text } from '../Text'; const meta = { title: 'Components/Heading',