@daeryun/dr_components 1.3.3 → 1.3.4

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.
@@ -11,14 +11,16 @@ const CategoryComponent = (props) => {
11
11
  let link = '';
12
12
  if (isApp) {
13
13
  link = `/${pathname}`;
14
+ return link + '/' + id;
14
15
  }
15
16
  else if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
16
17
  link = `/${pathname}`;
18
+ return link + '/' + id;
17
19
  }
18
20
  else {
19
21
  link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
22
+ return link + '/' + id + getPowerLinkStr();
20
23
  }
21
- return link + '/' + id;
22
24
  };
23
25
  return (<div className={'flex h-auto w-full flex-col justify-between bg-[#FAFAFA] px-[30px] py-[20px] ' +
24
26
  //1280px
@@ -37,10 +39,8 @@ const CategoryComponent = (props) => {
37
39
  //520px
38
40
  'max-2sm:auto-rows-[minmax(0,50px)]'}>
39
41
  {showCategory.map((item, index) => {
40
- const link = linkString(item.idx, item.pathname);
41
- const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
42
42
  return (<Link href={{
43
- pathname: href
43
+ pathname: linkString(item.idx, item.pathname)
44
44
  }} key={index} className={'group/category flex h-full w-full items-center justify-between gap-[6px] rounded-[10px] border-[1px] border-solid border-[#D9D9D9] bg-[#fff] px-[20px] ' +
45
45
  //900px
46
46
  'max-md2:rounded-none max-md2:border-0' +
@@ -35,13 +35,14 @@ const CategoryComponent = (props: {
35
35
 
36
36
  if (isApp) {
37
37
  link = `/${pathname}`;
38
+ return link + '/' + id;
38
39
  } else if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
39
40
  link = `/${pathname}`;
41
+ return link + '/' + id;
40
42
  } else {
41
43
  link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
44
+ return link + '/' + id + getPowerLinkStr();
42
45
  }
43
-
44
- return link + '/' + id;
45
46
  };
46
47
  return (
47
48
  <div
@@ -69,13 +70,10 @@ const CategoryComponent = (props: {
69
70
  }
70
71
  >
71
72
  {showCategory.map((item, index) => {
72
- const link = linkString(item.idx, item.pathname);
73
- const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
74
-
75
73
  return (
76
74
  <Link
77
75
  href={{
78
- pathname: href
76
+ pathname: linkString(item.idx, item.pathname)
79
77
  }}
80
78
  key={index}
81
79
  className={