Skip to content

Commit b16c4bf

Browse files
committed
add fix for motion box type
1 parent a88f315 commit b16c4bf

File tree

1 file changed

+4
-6
lines changed
  • packages/frontend/src/components/EditorLayout/AnnouncementModal

1 file changed

+4
-6
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { FC } from 'react'
2-
import { Box, BoxProps } from '@chakra-ui/react'
3-
import { HTMLMotionProps, motion } from 'framer-motion'
4-
import { Merge } from 'type-fest'
1+
import { Box } from '@chakra-ui/react'
2+
import { motion } from 'framer-motion'
53

6-
export type MotionBoxProps = Merge<BoxProps, HTMLMotionProps<'div'>>
7-
export const MotionBox = motion(Box) as FC<MotionBoxProps>
4+
const MotionBoxComponent = motion(Box)
5+
export const MotionBox = MotionBoxComponent

0 commit comments

Comments
 (0)