Skip to content

Commit

Permalink
Merge pull request #29209 from JSMike/fix-refIndicator-icon
Browse files Browse the repository at this point in the history
UI: Fix RefIndicator to use CheckIcon instead of string
  • Loading branch information
shilman authored Oct 19, 2024
2 parents ac09301 + bb07fe6 commit 9ea2132
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 9ea2132

Please sign in to comment.