Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar committed Sep 19, 2023
1 parent d31db49 commit 3077a3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import chroma from 'chroma-js'
import { Div, type DivProps } from 'honorable'
import { forwardRef } from 'react'
import { type DefaultTheme, useTheme } from 'styled-components'
import { type Merge } from 'type-fest'
import { memoize } from 'lodash-es'

import { type SeverityExt, sanitizeSeverity } from '../types'
Expand Down Expand Up @@ -40,7 +39,7 @@ type BaseCardProps = {
severity?: SeverityExt
}

type CardProps = Merge<DivProps, BaseCardProps>
type CardProps = DivProps & BaseCardProps

const fillToNeutralBgC = {
0: 'fill-one',
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFloatingDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function useFloatingDropdown({
offset(theme.spacing.xxsmall),
size({
padding: sizePadding,
apply(args) {
apply(args: any) {
const { elements, availableHeight, rects } = args
const maxW =
typeof width === 'string' && width
Expand Down

0 comments on commit 3077a3d

Please sign in to comment.