diff --git a/src/components/Design.jsx b/src/components/Design.jsx index ed7b2645..9aa9a1d9 100644 --- a/src/components/Design.jsx +++ b/src/components/Design.jsx @@ -1,23 +1,57 @@ -import React from 'react' -import {useState} from 'react' +import React from "react"; +import { useState } from "react"; -export const Design = ({question,answer}) => { - const [show,setShow]= useState(false); - const [sign,setSign]= useState("+"); - function one(){ +export const Design = ({ question, answer }) => { + const [show, setShow] = useState(false); + const [sign, setSign] = useState("+"); + function one() { setShow(!show); } return ( -
-
-

{one()}}>{question}

-
{one()}}> -

{show?"-":"+"}

+
+
+

{ + one(); + }} + > + {question}{" "} +

+
{ + one(); + }} + > +

+ {show ? "-" : "+"} +

+
- { - show &&

{answer}

- } - + {show && ( +

+ {answer} +

+ )}
- ) -} + ); +}; diff --git a/src/components/Faq-ques.js b/src/components/Faq-ques.js index 69a9c029..d4dfd960 100644 --- a/src/components/Faq-ques.js +++ b/src/components/Faq-ques.js @@ -1,7 +1,8 @@ export const questions=[ + { id: 1, - question: 'What are the best places for nature lovers in India?', + question: 'What are the best places for nature lovers in IndiaWha?', answer: 'When exploring different places in India, one can visit a number of tourist destinations that are perfect for nature lovers. Some of them are mentioned in the list: Ladakh, Kashmir, Andaman & Nicobar, Kerala' }, { @@ -49,4 +50,5 @@ export const questions=[ question: 'Is it necessary to tip in India?', answer: 'Tipping is not mandatory in India, but it is common to tip service staff, such as waiters and bellboys, around 10% of the bill amount.' } + ] \ No newline at end of file diff --git a/src/pages/ContactUs.jsx b/src/pages/ContactUs.jsx index 3e147e82..1b3afdd4 100644 --- a/src/pages/ContactUs.jsx +++ b/src/pages/ContactUs.jsx @@ -183,7 +183,7 @@ export const ContactUs = () => {
-
+

Contact Information