Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Apr 18, 2024
1 parent 4fb83d5 commit e3bfebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/components/layout/header/internal/HeaderActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { forwardRef } from 'react'
import clsx from 'clsx'
import type { ForwardRefComponent } from 'framer-motion'

export const HeaderActionButton: ForwardRefComponent<
export const HeaderActionButton = forwardRef<
HTMLButtonElement,
JSX.IntrinsicElements['button']
> = forwardRef(({ children, ...rest }, ref) => {
>(({ children, ...rest }, ref) => {
return (
<button
className={clsx(
Expand Down
6 changes: 3 additions & 3 deletions src/components/ui/button/MotionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import { forwardRef } from 'react'
import { m } from 'framer-motion'
import type { ForwardRefComponent, HTMLMotionProps } from 'framer-motion'
import type { HTMLMotionProps } from 'framer-motion'

export const MotionButtonBase: ForwardRefComponent<
export const MotionButtonBase = forwardRef<
HTMLButtonElement,
HTMLMotionProps<'button'>
> = forwardRef(({ children, ...rest }, ref) => {
>(({ children, ...rest }, ref) => {
return (
<m.button
initial={true}
Expand Down

0 comments on commit e3bfebf

Please sign in to comment.