diff --git a/invokeai/frontend/web/src/common/components/IAIDropOverlay.tsx b/invokeai/frontend/web/src/common/components/IAIDropOverlay.tsx index d37d164aad..0b9486e64d 100644 --- a/invokeai/frontend/web/src/common/components/IAIDropOverlay.tsx +++ b/invokeai/frontend/web/src/common/components/IAIDropOverlay.tsx @@ -1,80 +1,62 @@ import { Flex, Text } from '@invoke-ai/ui-library'; -import type { AnimationProps } from 'framer-motion'; -import { motion } from 'framer-motion'; -import { memo, useRef } from 'react'; +import { memo } from 'react'; import { useTranslation } from 'react-i18next'; -import { v4 as uuidv4 } from 'uuid'; + type Props = { isOver: boolean; label?: string; }; -const initial: AnimationProps['initial'] = { - opacity: 0, -}; -const animate: AnimationProps['animate'] = { - opacity: 1, - transition: { duration: 0.1 }, -}; -const exit: AnimationProps['exit'] = { - opacity: 0, - transition: { duration: 0.1 }, -}; - const IAIDropOverlay = (props: Props) => { const { t } = useTranslation(); const { isOver, label = t('gallery.drop') } = props; - const motionId = useRef(uuidv4()); return ( - - - + + - + - - {label} - - + {label} + - + ); };