Skip to content

Commit

Permalink
chore(sanity): #TEMPORARY expect TS errors while using @sanity/ui a…
Browse files Browse the repository at this point in the history
…nd `@sanity/icons` prereleases
  • Loading branch information
juice49 committed Oct 18, 2024
1 parent 61ac0d8 commit 3fb444f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/sanity/src/core/components/StatusButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const StatusButton = forwardRef(function StatusButton(
...restProps
} = props
const theme = useTheme()
// @ts-expect-error fixme after sanity/ui and sanity/icons release
const toneColor = tone && theme.sanity.color.solid[tone]
const dotStyle = useMemo(() => ({backgroundColor: toneColor?.enabled.bg}), [toneColor])
const disabled = Boolean(disabledProp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const Overlay = styled(Flex)<{
$tone: Exclude<CardTone, 'inherit'>
}>(({$tone}) => {
const colorScheme = useColorSchemeValue()
// @ts-expect-error fixme after sanity/ui and sanity/icons release
const textColor = studioTheme.color[colorScheme][$tone].card.enabled.fg
// @ts-expect-error fixme after sanity/ui and sanity/icons release
const backgroundColor = rgba(studioTheme.color[colorScheme][$tone].card.enabled.bg, 0.8)

return css`
Expand Down

0 comments on commit 3fb444f

Please sign in to comment.