From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 22 Feb 2023 11:03:34 +0700 Subject: prettier --- src/core/components/elements/Popup/BottomPopup.jsx | 33 +++++++++------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'src/core/components/elements/Popup') diff --git a/src/core/components/elements/Popup/BottomPopup.jsx b/src/core/components/elements/Popup/BottomPopup.jsx index c3c380c0..af1149ca 100644 --- a/src/core/components/elements/Popup/BottomPopup.jsx +++ b/src/core/components/elements/Popup/BottomPopup.jsx @@ -1,15 +1,10 @@ -import { XMarkIcon } from "@heroicons/react/24/outline" -import { AnimatePresence, motion } from "framer-motion" -import { useEffect } from "react" +import { XMarkIcon } from '@heroicons/react/24/outline' +import { AnimatePresence, motion } from 'framer-motion' +import { useEffect } from 'react' const transition = { ease: 'linear', duration: 0.2 } -const BottomPopup = ({ - children, - active = false, - title, - close -}) => { +const BottomPopup = ({ children, active = false, title, close }) => { useEffect(() => { if (active) { document.querySelector('html, body').classList.add('overflow-hidden') @@ -21,10 +16,10 @@ const BottomPopup = ({ return ( <> - { active && ( + {active && ( <> -
-
{ title }
-
- { children } + {children}
- ) } + )}
) } -export default BottomPopup \ No newline at end of file +export default BottomPopup -- cgit v1.2.3