@codesinger0/shared-components 1.1.59 → 1.1.61

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.
@@ -5,7 +5,8 @@ const QAAccordion = ({
5
5
  title = "שאלות נפוצות",
6
6
  subtitle = "מענה לשאלות הנפוצות ביותר",
7
7
  qaItems = [],
8
- onClickCta = () => {},
8
+ onClickCta = () => { },
9
+ showCTA = true,
9
10
  className = ""
10
11
  }) => {
11
12
  const [openIndex, setOpenIndex] = useState(null);
@@ -183,14 +184,16 @@ const QAAccordion = ({
183
184
  </div>
184
185
 
185
186
  {/* Optional CTA */}
186
- <div className="text-center mt-12">
187
- <p className="content-text mb-4">
188
- לא מצאתם את התשובה שחיפשתם?
189
- </p>
190
- <button className="btn-primary" onClick={onClickCta}>
191
- צרו קשר
192
- </button>
193
- </div>
187
+ {showCTA && (
188
+ <div className="text-center mt-12">
189
+ <p className="content-text mb-4">
190
+ לא מצאתם את התשובה שחיפשתם?
191
+ </p>
192
+ <button className="btn-primary" onClick={onClickCta}>
193
+ צרו קשר
194
+ </button>
195
+ </div>
196
+ )}
194
197
  </div>
195
198
  </section>
196
199
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codesinger0/shared-components",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "description": "Shared React components for customer projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [