@daeryun/dr_components 0.8.50 → 0.8.51

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.
@@ -116,14 +116,19 @@ const FieldNew = ({ data, tel }) => {
116
116
  .map((h3Template, h3Index) => {
117
117
  return (<>
118
118
  <H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
119
- <span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
120
- //520px
121
- 'max-2sm:gap-[16px]'}>
122
- {h3Template.reference_is_use &&
123
- referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
124
- {h3Template.news_is_use &&
125
- newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
126
- </span>
119
+ {(h3Template.reference_is_use &&
120
+ referenceLinkList.length > 0) ||
121
+ (h3Template.news_is_use &&
122
+ newsLinkList.length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
123
+ //520px
124
+ 'max-2sm:gap-[16px]'}>
125
+ {h3Template.reference_is_use &&
126
+ referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx ===
127
+ h3Template.idx)}/>)}
128
+ {h3Template.news_is_use &&
129
+ newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx ===
130
+ h3Template.idx)}/>)}
131
+ </span>) : (<></>)}
127
132
  </>);
128
133
  })}
129
134
  <span className={'flex flex-col gap-[26px] ' +
@@ -176,34 +176,43 @@ const FieldNew = ({ data, tel }: IFieldNewPageTypes) => {
176
176
  h3Template={h3Template}
177
177
  key={'h3영역' + h3Template.idx}
178
178
  />
179
- <span
180
- className={
181
- 'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
182
- //520px
183
- 'max-2sm:gap-[16px]'
184
- }
185
- >
186
- {h3Template.reference_is_use &&
187
- referenceLinkList.length > 0 && (
188
- <SeoAdditionalLink
189
- type={'더보기'}
190
- linkList={referenceLinkList.filter(
191
- i =>
192
- i.tag_idx === h3Template.idx
193
- )}
194
- />
195
- )}
196
- {h3Template.news_is_use &&
197
- newsLinkList.length > 0 && (
198
- <SeoAdditionalLink
199
- type={'관련기사'}
200
- linkList={newsLinkList.filter(
201
- i =>
202
- i.tag_idx === h3Template.idx
203
- )}
204
- />
205
- )}
206
- </span>
179
+ {(h3Template.reference_is_use &&
180
+ referenceLinkList.length > 0) ||
181
+ (h3Template.news_is_use &&
182
+ newsLinkList.length > 0) ? (
183
+ <span
184
+ className={
185
+ 'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
186
+ //520px
187
+ 'max-2sm:gap-[16px]'
188
+ }
189
+ >
190
+ {h3Template.reference_is_use &&
191
+ referenceLinkList.length > 0 && (
192
+ <SeoAdditionalLink
193
+ type={'더보기'}
194
+ linkList={referenceLinkList.filter(
195
+ i =>
196
+ i.tag_idx ===
197
+ h3Template.idx
198
+ )}
199
+ />
200
+ )}
201
+ {h3Template.news_is_use &&
202
+ newsLinkList.length > 0 && (
203
+ <SeoAdditionalLink
204
+ type={'관련기사'}
205
+ linkList={newsLinkList.filter(
206
+ i =>
207
+ i.tag_idx ===
208
+ h3Template.idx
209
+ )}
210
+ />
211
+ )}
212
+ </span>
213
+ ) : (
214
+ <></>
215
+ )}
207
216
  </>
208
217
  );
209
218
  })}
@@ -118,14 +118,16 @@ const LawInfoNew = ({ data, tel }) => {
118
118
  .map((h3Template, h3Index) => {
119
119
  return (<>
120
120
  <H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
121
- <span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
122
- //520px
123
- 'max-2sm:gap-[16px]'}>
124
- {h3Template.reference_is_use &&
125
- referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
126
- {h3Template.news_is_use &&
127
- newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
128
- </span>
121
+ {(h3Template.reference_is_use &&
122
+ referenceLinkList.length > 0) ||
123
+ (h3Template.news_is_use && newsLinkList.length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
124
+ //520px
125
+ 'max-2sm:gap-[16px]'}>
126
+ {h3Template.reference_is_use &&
127
+ referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
128
+ {h3Template.news_is_use &&
129
+ newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
130
+ </span>) : (<></>)}
129
131
  </>);
130
132
  })}
131
133
  <span className={'flex flex-col gap-[26px] ' +
@@ -184,32 +184,40 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
184
184
  h3Template={h3Template}
185
185
  key={'h3영역' + h3Template.idx}
186
186
  />
187
- <span
188
- className={
189
- 'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
190
- //520px
191
- 'max-2sm:gap-[16px]'
192
- }
193
- >
194
- {h3Template.reference_is_use &&
195
- referenceLinkList.length > 0 && (
196
- <SeoAdditionalLink
197
- type={'더보기'}
198
- linkList={referenceLinkList.filter(
199
- i => i.tag_idx === h3Template.idx
200
- )}
201
- />
202
- )}
203
- {h3Template.news_is_use &&
204
- newsLinkList.length > 0 && (
205
- <SeoAdditionalLink
206
- type={'관련기사'}
207
- linkList={newsLinkList.filter(
208
- i => i.tag_idx === h3Template.idx
209
- )}
210
- />
211
- )}
212
- </span>
187
+ {(h3Template.reference_is_use &&
188
+ referenceLinkList.length > 0) ||
189
+ (h3Template.news_is_use && newsLinkList.length > 0) ? (
190
+ <span
191
+ className={
192
+ 'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
193
+ //520px
194
+ 'max-2sm:gap-[16px]'
195
+ }
196
+ >
197
+ {h3Template.reference_is_use &&
198
+ referenceLinkList.length > 0 && (
199
+ <SeoAdditionalLink
200
+ type={'더보기'}
201
+ linkList={referenceLinkList.filter(
202
+ i =>
203
+ i.tag_idx === h3Template.idx
204
+ )}
205
+ />
206
+ )}
207
+ {h3Template.news_is_use &&
208
+ newsLinkList.length > 0 && (
209
+ <SeoAdditionalLink
210
+ type={'관련기사'}
211
+ linkList={newsLinkList.filter(
212
+ i =>
213
+ i.tag_idx === h3Template.idx
214
+ )}
215
+ />
216
+ )}
217
+ </span>
218
+ ) : (
219
+ <></>
220
+ )}
213
221
  </>
214
222
  );
215
223
  })}
@@ -130,13 +130,16 @@ const SuccessNew = ({ data, tel }) => {
130
130
  .map((h3Template, h3Index) => {
131
131
  return (<>
132
132
  <H3Contents h3Template={h3Template} key={'h3영역' + h3Template.idx}/>
133
- <span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
134
- //520px
135
- 'max-2sm:gap-[16px]'}>
136
- {h3Template.reference_is_use &&
137
- referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
138
- {h3Template.news_is_use && newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
139
- </span>
133
+ {(h3Template.reference_is_use &&
134
+ referenceLinkList.length > 0) ||
135
+ (h3Template.news_is_use && newsLinkList.length > 0) ? (<span className={'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
136
+ //520px
137
+ 'max-2sm:gap-[16px]'}>
138
+ {h3Template.reference_is_use &&
139
+ referenceLinkList.length > 0 && (<SeoAdditionalLink type={'더보기'} linkList={referenceLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
140
+ {h3Template.news_is_use &&
141
+ newsLinkList.length > 0 && (<SeoAdditionalLink type={'관련기사'} linkList={newsLinkList.filter(i => i.tag_idx === h3Template.idx)}/>)}
142
+ </span>) : (<></>)}
140
143
  </>);
141
144
  })}
142
145
  <span className={'flex flex-col gap-[26px] ' +
@@ -195,31 +195,38 @@ const SuccessNew = ({ data, tel }: ISuccessNewPageTypes) => {
195
195
  h3Template={h3Template}
196
196
  key={'h3영역' + h3Template.idx}
197
197
  />
198
- <span
199
- className={
200
- 'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
201
- //520px
202
- 'max-2sm:gap-[16px]'
203
- }
204
- >
205
- {h3Template.reference_is_use &&
206
- referenceLinkList.length > 0 && (
207
- <SeoAdditionalLink
208
- type={'더보기'}
209
- linkList={referenceLinkList.filter(
210
- i => i.tag_idx === h3Template.idx
211
- )}
212
- />
213
- )}
214
- {h3Template.news_is_use && newsLinkList.length > 0 && (
215
- <SeoAdditionalLink
216
- type={'관련기사'}
217
- linkList={newsLinkList.filter(
218
- i => i.tag_idx === h3Template.idx
198
+ {(h3Template.reference_is_use &&
199
+ referenceLinkList.length > 0) ||
200
+ (h3Template.news_is_use && newsLinkList.length > 0) ? (
201
+ <span
202
+ className={
203
+ 'mb-[44px] flex flex-col gap-[26px] px-[10px] sm:mx-[33px] sm:mb-[50px] sm:px-[18px] lg:mb-[78px] ' +
204
+ //520px
205
+ 'max-2sm:gap-[16px]'
206
+ }
207
+ >
208
+ {h3Template.reference_is_use &&
209
+ referenceLinkList.length > 0 && (
210
+ <SeoAdditionalLink
211
+ type={'더보기'}
212
+ linkList={referenceLinkList.filter(
213
+ i => i.tag_idx === h3Template.idx
214
+ )}
215
+ />
219
216
  )}
220
- />
221
- )}
222
- </span>
217
+ {h3Template.news_is_use &&
218
+ newsLinkList.length > 0 && (
219
+ <SeoAdditionalLink
220
+ type={'관련기사'}
221
+ linkList={newsLinkList.filter(
222
+ i => i.tag_idx === h3Template.idx
223
+ )}
224
+ />
225
+ )}
226
+ </span>
227
+ ) : (
228
+ <></>
229
+ )}
223
230
  </>
224
231
  );
225
232
  })}