@daeryun/dr_components 0.9.83 → 0.9.85

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.
@@ -89,15 +89,14 @@ const LawInfoNew = ({ data, tel }) => {
89
89
  };
90
90
  const convertFaqItemType = (template) => {
91
91
  if (faqCount >= 2) {
92
- template.description = template.description
93
- .replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
92
+ template.description = template.description.replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
94
93
  return template;
95
94
  }
96
95
  return template;
97
96
  };
98
97
  return (<div itemScope={handleFaqItemScope(isFaqActive, faqCount)} itemType={handleFaqItemType(isFaqActive, faqCount)} ref={printRef}>
99
98
  <div id={'sub_contents'}>
100
- <div className="font-[SUIT] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
99
+ <div className="relative m-auto mb-[60px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
101
100
  <div className={'m-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
102
101
  //1700px
103
102
  'max-5xl:gap-[80px] ' +
@@ -120,17 +120,18 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
120
120
  };
121
121
 
122
122
  const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
123
- if (faqCount as number >= 2) {
124
- template.description = template.description
125
- .replace(/itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi, '');
126
-
127
- return template;
123
+ if ((faqCount as number) >= 2) {
124
+ template.description = template.description.replace(
125
+ /itemtype\s*=\s*["']https:\/\/schema\.org\/FAQPage["']/gi,
126
+ ''
127
+ );
128
+
129
+ return template;
128
130
  }
129
131
 
130
132
  return template;
131
133
  };
132
134
 
133
-
134
135
  return (
135
136
  <div
136
137
  itemScope={handleFaqItemScope(isFaqActive, faqCount as number)}
@@ -138,7 +139,7 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
138
139
  ref={printRef}
139
140
  >
140
141
  <div id={'sub_contents'}>
141
- <div className="font-[SUIT] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
142
+ <div className="relative m-auto mb-[60px] w-[90%] max-w-screen-2xl font-[SUIT] max-xs:mb-[30px]">
142
143
  <div
143
144
  className={
144
145
  'm-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
@@ -201,10 +202,16 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
201
202
  <section
202
203
  className={'mt-[52px] sm:mt-[62px] lg:mt-[75px]'}
203
204
  key={'h2영역' + h2Template.idx}
204
- itemScope={faqCount as number >= 2 ? undefined : true}
205
- itemType={faqCount as number >= 2 ? undefined : 'https://schema.org/FAQPage'}
205
+ itemScope={(faqCount as number) >= 2 ? undefined : true}
206
+ itemType={
207
+ (faqCount as number) >= 2 ? undefined : 'https://schema.org/FAQPage'
208
+ }
206
209
  >
207
- <H2Contents h2Template={convertFaqItemType(h2Template)} index={index} faqCount={faqCount as number} />
210
+ <H2Contents
211
+ h2Template={convertFaqItemType(h2Template)}
212
+ index={index}
213
+ faqCount={faqCount as number}
214
+ />
208
215
 
209
216
  {/*h3*/}
210
217
  {template
@@ -27,5 +27,5 @@ export interface ILawInfoNewTypes {
27
27
  shortsLinkList: IAddLinkTypes[];
28
28
  youtubeLinkList: IAddLinkTypes[];
29
29
  initialData: IInitialDataTypes;
30
- faqCount?: number | null;
30
+ faqCount?: number;
31
31
  }
@@ -27,5 +27,5 @@ export interface ILawInfoNewTypes {
27
27
  shortsLinkList: IAddLinkTypes[];
28
28
  youtubeLinkList: IAddLinkTypes[];
29
29
  initialData: IInitialDataTypes;
30
- faqCount?: number | null;
30
+ faqCount?: number;
31
31
  }