@daeryun/dr_components 1.3.0 → 1.3.1

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.
@@ -4,6 +4,7 @@ import Image from 'next/image';
4
4
  import React from 'react';
5
5
  import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
6
6
  import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
7
+ import { getPowerLinkStr } from '../../lib';
7
8
  const CategoryComponent = (props) => {
8
9
  const { showCategory, onClickPage, currentPage, maxPageNum, selectedCenter, currentCenterTitle, allMainCenterTargetBlank, isApp } = props;
9
10
  const linkString = (id, pathname) => {
@@ -15,7 +16,7 @@ const CategoryComponent = (props) => {
15
16
  link = `/${pathname}`;
16
17
  }
17
18
  else {
18
- link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
19
+ link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}` + getPowerLinkStr();
19
20
  }
20
21
  return link + '/' + id;
21
22
  };
@@ -7,6 +7,7 @@ import { ICategory, ICenter } from './ICategoryViewTypes';
7
7
  import Icon from '../../asset/images/categoryView/section9_icon.webp';
8
8
  import Arrow5 from '../../asset/images/categoryView/section9_arrow_05.webp';
9
9
  import Arrow3 from '../../asset/images/categoryView/section9_arrow_03.webp';
10
+ import { getPowerLinkStr } from '../../lib';
10
11
 
11
12
  const CategoryComponent = (props: {
12
13
  showCategory: ICategory[];
@@ -37,7 +38,7 @@ const CategoryComponent = (props: {
37
38
  } else if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
38
39
  link = `/${pathname}`;
39
40
  } else {
40
- link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
41
+ link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}` + getPowerLinkStr();
41
42
  }
42
43
 
43
44
  return link + '/' + id;