Skip to content

Commit

Permalink
UI: Fix refIndicator to use ReactNode for check icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JSMike committed Oct 3, 2024
1 parent ed00bc5 commit 1c22d65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/core/src/manager/components/sidebar/RefIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { styled, useTheme } from '@storybook/core/theming';
import { global } from '@storybook/global';
import {
AlertIcon,
CheckIcon,
ChevronDownIcon,
DocumentIcon,
GlobeIcon,
Expand Down Expand Up @@ -216,7 +217,7 @@ export const RefIndicator = React.memo(
<TooltipLinkList
// @ts-expect-error (non strict)
links={Object.entries(ref.versions).map(([id, href]) => ({
icon: href === ref.url ? 'check' : undefined,
icon: href === ref.url ? <CheckIcon /> : undefined,
id,
title: id,
href,
Expand Down

0 comments on commit 1c22d65

Please sign in to comment.