Skip to content

Commit

Permalink
fix: ignore ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Aug 24, 2023
1 parent 580bc68 commit 225f95d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/ui/FloatPopover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ export const FloatPopover: FC<
])

const TriggerWrapper = (
// @ts-expect-error
<As
// @ts-ignore
role={trigger === 'both' || trigger === 'click' ? 'button' : 'note'}
tabIndex={0}
className={clsx('inline-block', wrapperClassNames)}
Expand Down Expand Up @@ -242,3 +242,5 @@ export const FloatPopover: FC<
</>
)
})

FloatPopover.displayName = 'FloatPopover'
3 changes: 2 additions & 1 deletion src/components/ui/Transition/factor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const createTransitionView = (
params: TransitionViewParams,
): FC<PropsWithChildren<BaseTransitionProps>> => {
const { from, to, initial } = params
return (props) => {
return function Transition(props) {
const {
timeout = {},
duration = 0.5,
Expand Down Expand Up @@ -70,6 +70,7 @@ export const createTransitionView = (
props.onEntered?.()
},
}}
// @ts-ignore
exit={{
...from,
transition: {
Expand Down

1 comment on commit 225f95d

@vercel
Copy link

@vercel vercel bot commented on 225f95d Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.