@daeryun/dr_components 1.3.37 → 1.3.39
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.
- package/dist/components/Fix/Fix.stories.d.ts +1 -0
- package/dist/components/Fix/index.d.ts +1 -0
- package/dist/components/Fix/index.jsx +3 -3
- package/dist/components/Fix/index.tsx +5 -2
- package/dist/components/page/Blog/Blog.jsx +1 -1
- package/dist/components/page/Blog/Blog.tsx +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -370,7 +370,7 @@ const Fix = (props) => {
|
|
|
370
370
|
{viewOnline ? (<OnlineBox titleTxt={'온라인 예약상담'} centerConsultUrl={props.centerConsultUrl} reservationTxt={'해당사건에 특화된 전문변호사가 검토 후 신속한 대응전략을 제시합니다.'} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onlineRef={onlineRef} onConsultCompClick={() => onConsultCompClick()} onConsultPersonalClick={() => onConsultPersonalClick()} target={props.target}/>) : (<></>)}
|
|
371
371
|
|
|
372
372
|
{/*전화*/}
|
|
373
|
-
{viewCall ? (<CallBox titleTxt={'변호사상담 접수'} mobileTitleTxt={'전화 예약상담'} tel={props.tel} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onClickTel={onClickTel} callRef={callRef} width={width} customFont={props.customFont}/>) : (<></>)}
|
|
373
|
+
{viewCall ? (<CallBox isCompNumber titleTxt={'변호사상담 접수'} mobileTitleTxt={'전화 예약상담'} tel={props.tel} companyTxt={'기업상담'} privateTxt={'개인상담'} cancel={handleCancel} onClickTel={onClickTel} callRef={callRef} width={width} customFont={props.customFont}/>) : (<></>)}
|
|
374
374
|
</div>
|
|
375
375
|
</>);
|
|
376
376
|
};
|
|
@@ -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();
|
|
@@ -558,6 +559,7 @@ const Fix = (props: {
|
|
|
558
559
|
{/*전화*/}
|
|
559
560
|
{viewCall ? (
|
|
560
561
|
<CallBox
|
|
562
|
+
isCompNumber
|
|
561
563
|
titleTxt={'변호사상담 접수'}
|
|
562
564
|
mobileTitleTxt={'전화 예약상담'}
|
|
563
565
|
tel={props.tel}
|
|
@@ -682,6 +684,7 @@ const CallBox = (props: {
|
|
|
682
684
|
callRef: RefObject<any>;
|
|
683
685
|
width: number;
|
|
684
686
|
customFont?: string;
|
|
687
|
+
isCompNumber?: boolean;
|
|
685
688
|
}) => {
|
|
686
689
|
const closeRef = useRef<HTMLButtonElement>(null);
|
|
687
690
|
|
|
@@ -750,9 +753,9 @@ const CallBox = (props: {
|
|
|
750
753
|
/>
|
|
751
754
|
</button>
|
|
752
755
|
</span>
|
|
753
|
-
|
|
756
|
+
{/*기업 상담*/}
|
|
754
757
|
<Link
|
|
755
|
-
href={`tel:${props.tel}`}
|
|
758
|
+
href={`tel:${props.isCompNumber && props.tel === '1800-7905' ? '1660-1037' : props.tel}`}
|
|
756
759
|
className={
|
|
757
760
|
'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
761
|
' 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={'/
|
|
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={'/
|
|
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]'
|