@npm_leadtech/legal-lib-components 5.2.20 → 5.2.22
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.
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { TrustPilot } from '../../atoms';
|
|
3
3
|
// import './PeopleSayAboutUsSection.scss'
|
|
4
4
|
const PeopleSayAboutUsSection = ({ title, testimonialsSectionContent, contentTrustPilot }) => {
|
|
5
|
-
return (_jsxs("section", { className: 'people-say', children: [Boolean(title) && _jsx("h2", { className: 'people-say__title', children: title }), testimonialsSectionContent, _jsx(TrustPilot, { children: contentTrustPilot.children })] }));
|
|
5
|
+
return (_jsxs("section", { className: 'people-say', children: [Boolean(title) && _jsx("h2", { className: 'people-say__title', children: title }), testimonialsSectionContent, contentTrustPilot && _jsx(TrustPilot, { children: contentTrustPilot.children })] }));
|
|
6
6
|
};
|
|
7
7
|
export default PeopleSayAboutUsSection;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
|
1
3
|
import React, { type FC } from 'react'
|
|
2
4
|
|
|
3
5
|
import { type PeopleSayAboutUsSectionProps } from './PeopleSayAboutUsSectionProps.types'
|
|
@@ -13,7 +15,7 @@ const PeopleSayAboutUsSection: FC<PeopleSayAboutUsSectionProps> = ({
|
|
|
13
15
|
<section className='people-say'>
|
|
14
16
|
{Boolean(title) && <h2 className='people-say__title'>{title}</h2>}
|
|
15
17
|
{testimonialsSectionContent}
|
|
16
|
-
<TrustPilot>{contentTrustPilot.children}</TrustPilot>
|
|
18
|
+
{contentTrustPilot && <TrustPilot>{contentTrustPilot.children}</TrustPilot>}
|
|
17
19
|
</section>
|
|
18
20
|
)
|
|
19
21
|
}
|