@daeryun/dr_components 0.9.72 → 0.9.73

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.
@@ -90,7 +90,13 @@ const LawInfoNew = ({ data, tel }) => {
90
90
  }
91
91
  return template;
92
92
  };
93
- return (<div itemScope={isFaqActive ? undefined : true} itemType={handleFaqItemType(isFaqActive, faqCount)} ref={printRef}>
93
+ const checkFaqItemScope = (isFaqActive, faqCount) => {
94
+ if (isFaqActive || faqCount >= 2) {
95
+ return true;
96
+ }
97
+ return undefined;
98
+ };
99
+ return (<div itemScope={checkFaqItemScope(isFaqActive, faqCount)} itemType={handleFaqItemType(isFaqActive, faqCount)} ref={printRef}>
94
100
  <div id={'sub_contents'}>
95
101
  <div className="font-[SUIT]] relative m-auto mb-[60px] w-[90%] max-w-screen-2xl max-xs:mb-[30px]">
96
102
  <div className={'m-auto mt-[100px] flex gap-[120px] lg:mt-[5em] ' +
@@ -124,9 +124,17 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
124
124
  return template;
125
125
  };
126
126
 
127
+ const checkFaqItemScope = (isFaqActive: boolean, faqCount: number) => {
128
+ if (isFaqActive || faqCount as number >= 2) {
129
+ return true;
130
+ }
131
+
132
+ return undefined;
133
+ };
134
+
127
135
  return (
128
136
  <div
129
- itemScope={isFaqActive ? undefined : true}
137
+ itemScope={checkFaqItemScope(isFaqActive, faqCount as number)}
130
138
  itemType={handleFaqItemType(isFaqActive, faqCount as number)}
131
139
  ref={printRef}
132
140
  >