@daeryun/dr_components 1.2.64 → 1.2.66

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.
@@ -55,7 +55,7 @@ const ChatButton = ({ isOpen, onClick, apiVersion, isMobile = false, hashValue =
55
55
  bottom: bannerHeight > 0
56
56
  ? width >= 1024
57
57
  ? `${bannerHeight + 20}px`
58
- : `${bannerHeight + 78}px`
58
+ : `${bannerHeight + 60}px`
59
59
  : width >= 1024
60
60
  ? '20px'
61
61
  : '88px'
@@ -71,7 +71,7 @@ const ChatButton: React.FC<ChatButtonProps> = ({
71
71
  bannerHeight > 0
72
72
  ? width >= 1024
73
73
  ? `${bannerHeight + 20}px`
74
- : `${bannerHeight + 78}px`
74
+ : `${bannerHeight + 60}px`
75
75
  : width >= 1024
76
76
  ? '20px'
77
77
  : '88px'
@@ -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 tempData.filter(item => item.file_type === (width >= 480 ? 'file_tab' : 'file_mobile'));
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 tempData.filter(item => item.file_type === (width >= 480 ? 'file_tab' : 'file_mobile'));
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 + '';