1+ import { AnimatePresence , motion , Variants } from 'framer-motion' ;
2+ import { X } from 'lucide-react' ;
13import React from 'react' ;
2- import { motion , AnimatePresence , Variants } from 'framer-motion' ;
3- import { useTheme } from '../../contexts/ThemeContext' ;
44import { THEMES } from '../../constants' ;
5- import { X } from 'lucide-react ' ;
5+ import { useTheme } from '../../contexts/ThemeContext ' ;
66
77interface ModalProps {
88 isOpen : boolean ;
@@ -22,20 +22,20 @@ export const Modal: React.FC<ModalProps> = ({ isOpen, onClose, title, children,
2222
2323 const modalVariants : Variants = style === THEMES . NEOBRUTALISM ? {
2424 hidden : { y : '100%' , rotate : - 5 , opacity : 0 } ,
25- visible : {
26- y : 0 ,
27- rotate : 0 ,
25+ visible : {
26+ y : 0 ,
27+ rotate : 0 ,
2828 opacity : 1 ,
29- transition : { type : 'spring' , damping : 15 , stiffness : 200 }
29+ transition : { type : 'spring' , damping : 15 , stiffness : 200 }
3030 } ,
3131 exit : { y : '100%' , rotate : 5 , opacity : 0 }
3232 } : {
3333 hidden : { scale : 0.8 , opacity : 0 , backdropFilter : 'blur(0px)' } ,
34- visible : {
35- scale : 1 ,
36- opacity : 1 ,
34+ visible : {
35+ scale : 1 ,
36+ opacity : 1 ,
3737 backdropFilter : 'blur(10px)' ,
38- transition : { type : 'spring' , damping : 20 , stiffness : 300 }
38+ transition : { type : 'spring' , damping : 20 , stiffness : 300 }
3939 } ,
4040 exit : { scale : 0.8 , opacity : 0 }
4141 } ;
@@ -58,8 +58,8 @@ export const Modal: React.FC<ModalProps> = ({ isOpen, onClose, title, children,
5858 animate = "visible"
5959 exit = "exit"
6060 className = { `relative w-full max-w-lg overflow-hidden flex flex-col max-h-[90vh]
61- ${ style === THEMES . NEOBRUTALISM
62- ? 'bg-white border-2 border-black shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]'
61+ ${ style === THEMES . NEOBRUTALISM
62+ ? 'bg-white border-2 border-black shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] rounded-none'
6363 : 'bg-gray-900/80 border border-white/20 rounded-3xl shadow-2xl text-white' } `}
6464 >
6565 { /* Header */ }
0 commit comments