@daeryun/dr_components 1.2.64 → 1.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,7 +58,7 @@ const ChatButton = ({ isOpen, onClick, apiVersion, isMobile = false, hashValue =
|
|
|
58
58
|
: `${bannerHeight + 78}px`
|
|
59
59
|
: width >= 1024
|
|
60
60
|
? '20px'
|
|
61
|
-
: '
|
|
61
|
+
: '60px'
|
|
62
62
|
}} className={`
|
|
63
63
|
${isOpen ? 'hidden h-[50px] w-[50px] xs:block ' : 'h-[70px] w-[70px] 5xl:h-[100px] 5xl:w-[100px]'}
|
|
64
64
|
${hashValue ? 'pointer-events-none opacity-0' : ''}
|
|
@@ -4,19 +4,14 @@ import Link from 'next/link';
|
|
|
4
4
|
import Image from 'next/image';
|
|
5
5
|
import useBrowser from '../hook/useBrowser';
|
|
6
6
|
import { Autoplay } from 'swiper/modules';
|
|
7
|
-
import { tempData } from './common';
|
|
8
7
|
const MobileTopBanner = ({ popup, setMobileOpen, addClickCnt }) => {
|
|
9
8
|
const { width } = useBrowser(true);
|
|
10
9
|
const swiper = useRef(null);
|
|
11
10
|
const [index, setIndex] = useState(1);
|
|
12
|
-
// const currentPopup = useMemo(() => {
|
|
13
|
-
// if (width === 0) return [];
|
|
14
|
-
// return popup.filter(item => item.file_type === (width >= 480 ? 'file_tab' : 'file_mobile'));
|
|
15
|
-
// }, [popup, width]);
|
|
16
11
|
const currentPopup = useMemo(() => {
|
|
17
12
|
if (width === 0)
|
|
18
13
|
return [];
|
|
19
|
-
return
|
|
14
|
+
return popup.filter(item => item.file_type === (width >= 480 ? 'file_tab' : 'file_mobile'));
|
|
20
15
|
}, [popup, width]);
|
|
21
16
|
//이미지 패스
|
|
22
17
|
const ImagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
@@ -19,13 +19,9 @@ const MobileTopBanner = ({
|
|
|
19
19
|
const { width } = useBrowser(true);
|
|
20
20
|
const swiper = useRef<Swiper | null>(null);
|
|
21
21
|
const [index, setIndex] = useState(1);
|
|
22
|
-
// const currentPopup = useMemo(() => {
|
|
23
|
-
// if (width === 0) return [];
|
|
24
|
-
// return popup.filter(item => item.file_type === (width >= 480 ? 'file_tab' : 'file_mobile'));
|
|
25
|
-
// }, [popup, width]);
|
|
26
22
|
const currentPopup = useMemo(() => {
|
|
27
23
|
if (width === 0) return [];
|
|
28
|
-
return
|
|
24
|
+
return popup.filter(item => item.file_type === (width >= 480 ? 'file_tab' : 'file_mobile'));
|
|
29
25
|
}, [popup, width]);
|
|
30
26
|
//이미지 패스
|
|
31
27
|
const ImagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|