diff --git a/frontend/src/Components/common/Footer/LegalSection/PrivacyPolicyPage.jsx b/frontend/src/Components/common/Footer/LegalSection/PrivacyPolicyPage.jsx index feac66e..3b3ff2d 100644 --- a/frontend/src/Components/common/Footer/LegalSection/PrivacyPolicyPage.jsx +++ b/frontend/src/Components/common/Footer/LegalSection/PrivacyPolicyPage.jsx @@ -34,60 +34,57 @@ const dataArray = [ const PrivacyPolicyPage = () => { const [activeIndex, setActiveIndex] = useState(null); - + const toggleBtn = (index) => { setActiveIndex(activeIndex === index ? null : index); }; return ( - <> -
-
-

+ +
+

Privacy Policy -

- -
- {dataArray.map((data, index) => ( - -
toggleBtn(index)} - style={{ cursor: 'pointer' }} - > -

- {data.title} -

-
- - {activeIndex === index ? '-' : '+'} - -
+

+
+ {dataArray.map((data, index) => ( + toggleBtn(index)}> +
+

+ {data.title} +

+
+ + {activeIndex === index ? '-' : '+'} +
- {activeIndex === index && ( - -

+

+ {activeIndex === index && ( + +
+

{data.para}

- - )} - - ))} -
+
+ + )} + + ))}
- + ); };