From 82161c4a1084a2d4df06e393a01038c80fb9248f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Matias=CC=8Cko?= Date: Tue, 30 Jul 2024 12:07:56 +0200 Subject: [PATCH] playwright test --- src/components/Atomic/Modal/Modal.tsx | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/components/Atomic/Modal/Modal.tsx b/src/components/Atomic/Modal/Modal.tsx index bcacf138..5babfcb2 100644 --- a/src/components/Atomic/Modal/Modal.tsx +++ b/src/components/Atomic/Modal/Modal.tsx @@ -11,6 +11,25 @@ import { convertSize, IconCloseCircle } from '../Icon' import Button from '../Button' import Backdrop from './Backdrop' +const dropIn = { + hidden: { + opacity: 0, + }, + visible: { + y: '0', + opacity: 1, + transition: { + duration: 0.1, + type: 'spring', + damping: 25, + stiffness: 500, + }, + }, + exit: { + opacity: 0, + }, +} + export const Modal: FC = memo((props) => { const { appRoot, @@ -128,25 +147,6 @@ export const Modal: FC = memo((props) => { return null } - const dropIn = { - hidden: { - opacity: 0, - }, - visible: { - y: '0', - opacity: 1, - transition: { - duration: 0.1, - type: 'spring', - damping: 25, - stiffness: 500, - }, - }, - exit: { - opacity: 0, - }, - } - const ModalBase = ( null}> {show && (