Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const getAboutQuestions = () => {
- return aboutQuestions.map((q) => {
- let tuple = [q[0], q[1], q[2]];
- let [id, question, answer] = tuple;
- let fixed_question = question.toLowerCase().replace(/ /g, "-");
- let new_question = fixed_question.slice(0, -1);
- return (
- <AboutStory className="container" key={id} id={new_question}>
- <Button type="button" className="collapsible">{question}</Button>
- <AboutStoryBox className="content container">
- <AboutDetails>{answer}</AboutDetails>
- <AboutTop href="/about/">Top</AboutTop>
- </AboutStoryBox>
- </AboutStory>
- );
- });
- };
- <AboutQuestionAnswers className="container">
- {getAboutQuestions()}
- </AboutQuestionAnswers>
Advertisement
Add Comment
Please, Sign In to add comment