Skip to content

Commit d45b242

Browse files
committed
fix: Import StaticImageData in NewModal component
1 parent 1e3b466 commit d45b242

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/client/editor/src/components/Modal/NewModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react'
22
import { useModal } from '../../contexts/ModalProvider'
33
import { useHotkeys } from 'react-hotkeys-hook'
44
import { Button } from '@magickml/client-ui'
5-
import Image from 'next/legacy/image'
5+
import Image, { StaticImageData } from 'next/legacy/image'
66

77
const Modal = ({
88
options,
@@ -17,7 +17,7 @@ const Modal = ({
1717
className?: string
1818
children?: React.ReactNode
1919
onClose?: () => void
20-
imagePath?: string
20+
imagePath?: string | StaticImageData
2121
}) => {
2222
const { closeModal } = useModal()
2323

0 commit comments

Comments
 (0)