@daeryun/dr_components 1.3.2 → 1.3.3

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.
@@ -16,7 +16,7 @@ const CategoryComponent = (props) => {
16
16
  link = `/${pathname}`;
17
17
  }
18
18
  else {
19
- link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}` + getPowerLinkStr();
19
+ link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
20
20
  }
21
21
  return link + '/' + id;
22
22
  };
@@ -36,28 +36,32 @@ const CategoryComponent = (props) => {
36
36
  'max-md2:auto-rows-[minmax(0,60px)] max-md2:grid-cols-1 ' +
37
37
  //520px
38
38
  'max-2sm:auto-rows-[minmax(0,50px)]'}>
39
- {showCategory.map((item, index) => (<Link href={{
40
- pathname: linkString(item.idx, item.pathname)
41
- }} 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] ' +
42
- //900px
43
- 'max-md2:rounded-none max-md2:border-0' +
44
- //520px
45
- 'max-2sm:px-[10px] '} target={(selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
46
- ? '_self'
47
- : '_blank'}>
48
- <p className={'text-left text-[18px] tracking-[-1px] text-[#4B4B4B] ' +
49
- //900px
50
- 'max-md2:text-[16px] ' +
51
- //520px
52
- 'max-2sm:text-[13px]'}>
53
- {item.title}
54
- </p>
55
- <Image src={Arrow3} alt={'arrow'} width={43} height={36} className={'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
56
- //520px
57
- 'max-md2:w-[16px] ' +
58
- //520px
59
- 'max-2sm:w-[13px]'}/>
60
- </Link>))}
39
+ {showCategory.map((item, index) => {
40
+ const link = linkString(item.idx, item.pathname);
41
+ const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
42
+ return (<Link href={{
43
+ pathname: href
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
+ //900px
46
+ 'max-md2:rounded-none max-md2:border-0' +
47
+ //520px
48
+ 'max-2sm:px-[10px] '} target={(selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
49
+ ? '_self'
50
+ : '_blank'}>
51
+ <p className={'text-left text-[18px] tracking-[-1px] text-[#4B4B4B] ' +
52
+ //900px
53
+ 'max-md2:text-[16px] ' +
54
+ //520px
55
+ 'max-2sm:text-[13px]'}>
56
+ {item.title}
57
+ </p>
58
+ <Image src={Arrow3} alt={'arrow'} width={43} height={36} className={'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
59
+ //520px
60
+ 'max-md2:w-[16px] ' +
61
+ //520px
62
+ 'max-2sm:w-[13px]'}/>
63
+ </Link>);
64
+ })}
61
65
  </span>
62
66
  <span className={'mt-[18px] flex items-center gap-[20px] ' +
63
67
  //900px
@@ -38,7 +38,7 @@ const CategoryComponent = (props: {
38
38
  } else if (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) {
39
39
  link = `/${pathname}`;
40
40
  } else {
41
- link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}` + getPowerLinkStr();
41
+ link = `https://www.daeryunlaw-${selectedCenter.code_desc}.com/${pathname}`;
42
42
  }
43
43
 
44
44
  return link + '/' + id;
@@ -68,51 +68,56 @@ const CategoryComponent = (props: {
68
68
  'max-2sm:auto-rows-[minmax(0,50px)]'
69
69
  }
70
70
  >
71
- {showCategory.map((item, index) => (
72
- <Link
73
- href={{
74
- pathname: linkString(item.idx, item.pathname)
75
- }}
76
- key={index}
77
- className={
78
- '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] ' +
79
- //900px
80
- 'max-md2:rounded-none max-md2:border-0' +
81
- //520px
82
- 'max-2sm:px-[10px] '
83
- }
84
- target={
85
- (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
86
- ? '_self'
87
- : '_blank'
88
- }
89
- >
90
- <p
71
+ {showCategory.map((item, index) => {
72
+ const link = linkString(item.idx, item.pathname);
73
+ const href = link.includes('daeryunlaw') ? link + getPowerLinkStr() : link;
74
+
75
+ return (
76
+ <Link
77
+ href={{
78
+ pathname: href
79
+ }}
80
+ key={index}
91
81
  className={
92
- 'text-left text-[18px] tracking-[-1px] text-[#4B4B4B] ' +
82
+ '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] ' +
93
83
  //900px
94
- 'max-md2:text-[16px] ' +
84
+ 'max-md2:rounded-none max-md2:border-0' +
95
85
  //520px
96
- 'max-2sm:text-[13px]'
86
+ 'max-2sm:px-[10px] '
97
87
  }
98
- >
99
- {item.title}
100
- </p>
101
- <Image
102
- src={Arrow3}
103
- alt={'arrow'}
104
- width={43}
105
- height={36}
106
- className={
107
- 'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
108
- //520px
109
- 'max-md2:w-[16px] ' +
110
- //520px
111
- 'max-2sm:w-[13px]'
88
+ target={
89
+ (selectedCenter.code_desc === currentCenterTitle && !allMainCenterTargetBlank) || isApp
90
+ ? '_self'
91
+ : '_blank'
112
92
  }
113
- />
114
- </Link>
115
- ))}
93
+ >
94
+ <p
95
+ className={
96
+ 'text-left text-[18px] tracking-[-1px] text-[#4B4B4B] ' +
97
+ //900px
98
+ 'max-md2:text-[16px] ' +
99
+ //520px
100
+ 'max-2sm:text-[13px]'
101
+ }
102
+ >
103
+ {item.title}
104
+ </p>
105
+ <Image
106
+ src={Arrow3}
107
+ alt={'arrow'}
108
+ width={43}
109
+ height={36}
110
+ className={
111
+ 'h-auto w-[20px] transition-all group-hover/category:translate-x-[5px] ' +
112
+ //520px
113
+ 'max-md2:w-[16px] ' +
114
+ //520px
115
+ 'max-2sm:w-[13px]'
116
+ }
117
+ />
118
+ </Link>
119
+ );
120
+ })}
116
121
  </span>
117
122
  <span
118
123
  className={