Skip to content

Commit

Permalink
refactor(sanity): use current global in the bundle badge
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Jul 5, 2024
1 parent 8916d19 commit 2c9eb11
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {BundleBadge} from '../../../../bundles/components/BundleBadge'
import {BundleMenu} from '../../../../bundles/components/BundleMenu'
import {CreateBundleDialog} from '../../../../bundles/components/dialog/CreateBundleDialog'
import {usePerspective} from '../../../../bundles/hooks/usePerspective'
import {LATEST} from '../../../../bundles/util/const'
import {useBundles} from '../../../../store/bundles/BundlesProvider'

export function GlobalPerspectiveMenu(): JSX.Element {
Expand All @@ -31,13 +30,7 @@ export function GlobalPerspectiveMenu(): JSX.Element {
<BundleMenu
button={
<Button mode="bleed" padding={0} radius="full">
<BundleBadge
hue={hue}
icon={currentGlobalBundle.name === LATEST.name ? undefined : icon}
openButton
padding={2}
title={currentGlobalBundle.name === LATEST.name ? LATEST.title : title}
/>
<BundleBadge hue={hue} icon={icon} openButton padding={2} title={title} />
</Button>
}
bundles={bundles}
Expand Down

0 comments on commit 2c9eb11

Please sign in to comment.