@daeryun/dr_components 1.3.37 → 1.3.38

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.
@@ -10,6 +10,7 @@ declare const fix: {
10
10
  customFont?: string;
11
11
  bannerHeight?: number;
12
12
  target?: boolean;
13
+ isCompNumber?: boolean;
13
14
  }) => import("react").JSX.Element;
14
15
  title: string;
15
16
  };
@@ -7,5 +7,6 @@ declare const Fix: (props: {
7
7
  customFont?: string;
8
8
  bannerHeight?: number;
9
9
  target?: boolean;
10
+ isCompNumber?: boolean;
10
11
  }) => React.JSX.Element;
11
12
  export default Fix;
@@ -441,8 +441,8 @@ const CallBox = (props) => {
441
441
  <Image src={MenuXIcon} width={54} height={54} alt={'전화상담 닫기'} className={'h-auto w-[20px] cursor-pointer max-5xl:w-[15px] max-lg:w-[15px]'}/>
442
442
  </button>
443
443
  </span>
444
-
445
- <Link href={`tel:${props.tel}`} className={'mb-[4px] mt-[32px] flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#285EA7] px-[20px] py-[16px] text-[22px] font-bold text-white' +
444
+ {/*기업 상담*/}
445
+ <Link href={`tel:${props.isCompNumber && props.tel === '1800-7905' ? '1660-1037' : props.tel}`} className={'mb-[4px] mt-[32px] flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#285EA7] px-[20px] py-[16px] text-[22px] font-bold text-white' +
446
446
  ' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
447
447
  ' max-lg:mt-[15px] max-lg:h-[60px] max-lg:w-[200px] max-lg:px-[15px] max-lg:py-[12px] '} onClick={props.onClickTel} aria-label={'기업 전화상담'}>
448
448
  <span className={'text-left font-bold leading-tight max-lg:leading-[17.5px]'}>
@@ -30,6 +30,7 @@ const Fix = (props: {
30
30
  customFont?: string;
31
31
  bannerHeight?: number;
32
32
  target?: boolean;
33
+ isCompNumber?: boolean; //기업 행정 성범죄 민사 형사 이혼 부동산 마약 지재권 상속 의료 군형사 회파 학교 음주 > 제외
33
34
  }) => {
34
35
  const mobile = require('is-mobile');
35
36
  const pathname = usePathname();
@@ -682,6 +683,7 @@ const CallBox = (props: {
682
683
  callRef: RefObject<any>;
683
684
  width: number;
684
685
  customFont?: string;
686
+ isCompNumber?: boolean;
685
687
  }) => {
686
688
  const closeRef = useRef<HTMLButtonElement>(null);
687
689
 
@@ -750,9 +752,9 @@ const CallBox = (props: {
750
752
  />
751
753
  </button>
752
754
  </span>
753
-
755
+ {/*기업 상담*/}
754
756
  <Link
755
- href={`tel:${props.tel}`}
757
+ href={`tel:${props.isCompNumber && props.tel === '1800-7905' ? '1660-1037' : props.tel}`}
756
758
  className={
757
759
  'mb-[4px] mt-[32px] flex h-[80px] w-[240px] items-center justify-between rounded-[5px] bg-[#285EA7] px-[20px] py-[16px] text-[22px] font-bold text-white' +
758
760
  ' max-5xl:h-[60px] max-5xl:w-[190px] max-5xl:text-[18px] ' +
@@ -205,7 +205,7 @@ const Blog = ({ data, tel }) => {
205
205
  </p>)}
206
206
  </div>
207
207
 
208
- <Link href={'/info'} className={'hidden lg:block'}>
208
+ <Link href={'/blog'} className={'hidden lg:block'}>
209
209
  <button className={'rounded-[30px] border-[1px] border-solid border-[#b0b0b0] bg-[#41464C] px-[40px] py-[10px] text-[#fff] xxl:px-[70px] xxl:py-[15px]'}>
210
210
  목록보기
211
211
  </button>
@@ -402,7 +402,7 @@ const Blog = ({ data, tel }: IBlogPageTypes) => {
402
402
  )}
403
403
  </div>
404
404
 
405
- <Link href={'/info'} className={'hidden lg:block'}>
405
+ <Link href={'/blog'} className={'hidden lg:block'}>
406
406
  <button
407
407
  className={
408
408
  'rounded-[30px] border-[1px] border-solid border-[#b0b0b0] bg-[#41464C] px-[40px] py-[10px] text-[#fff] xxl:px-[70px] xxl:py-[15px]'