From 3222f751d54146176d2068c09d22bb95d5199667 Mon Sep 17 00:00:00 2001 From: Vivek Vishal Date: Sat, 27 Apr 2024 19:53:17 +0530 Subject: [PATCH 1/4] add lost commit: https://github.com/meshery/play/commit/ccb150b188334ec836bdf6c1903b67d94778bf43 Signed-off-by: Vivek Vishal --- site/src/components/Faq/faqSection.style.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/site/src/components/Faq/faqSection.style.js b/site/src/components/Faq/faqSection.style.js index 67e0e57..213c2ce 100644 --- a/site/src/components/Faq/faqSection.style.js +++ b/site/src/components/Faq/faqSection.style.js @@ -45,11 +45,10 @@ const FaqSectionWrapper = styled.section` .markdown { text-align: left; - color: rgb(250, 250, 250); + color: ${({ theme }) => theme.text}; font-size: 16px; p { margin: 1rem 0; - color: rgb(250, 250, 250); } } } @@ -114,7 +113,7 @@ const FaqSectionWrapper = styled.section` .accordion__item { .accordion__header { h5 { - font-size: 13px; + font-size: 15px; line-height: 21px; padding-right: 1.6rem; } From aa6f882f034d58e456f81bbbf73427c93aebe300 Mon Sep 17 00:00:00 2001 From: Vivek Vishal Date: Sat, 27 Apr 2024 19:53:37 +0530 Subject: [PATCH 2/4] fix failing build Signed-off-by: Vivek Vishal --- site/src/components/Faq/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/Faq/index.js b/site/src/components/Faq/index.js index c201137..4d6a1c5 100644 --- a/site/src/components/Faq/index.js +++ b/site/src/components/Faq/index.js @@ -90,7 +90,7 @@ const Faq = (props) => { ))} - ); + ) }; export default Faq; From 2b0788cdc72b80cccb146d21e5f9394b20885fd4 Mon Sep 17 00:00:00 2001 From: Vivek Vishal Date: Sat, 27 Apr 2024 19:59:20 +0530 Subject: [PATCH 3/4] remove ; Signed-off-by: Vivek Vishal --- site/src/components/Faq/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/Faq/index.js b/site/src/components/Faq/index.js index 4d6a1c5..a901fc4 100644 --- a/site/src/components/Faq/index.js +++ b/site/src/components/Faq/index.js @@ -91,6 +91,6 @@ const Faq = (props) => { ) -}; +} export default Faq; From 4d05edd0b4af11d21319af766d92296d2ad8d98a Mon Sep 17 00:00:00 2001 From: Vivek Vishal Date: Sun, 5 May 2024 09:19:05 +0530 Subject: [PATCH 4/4] Update index.js Signed-off-by: Vivek Vishal --- site/src/components/Faq/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/site/src/components/Faq/index.js b/site/src/components/Faq/index.js index a901fc4..5b9b071 100644 --- a/site/src/components/Faq/index.js +++ b/site/src/components/Faq/index.js @@ -19,19 +19,22 @@ import remarkGfm from "remark-gfm"; const Faq = (props) => { let faq_keys = []; let faqs_data = []; - if (props.category === undefined) + if (props.category === undefined) { faqs_data = data.faqs; - else { + } else { props.category.forEach(item => { - if (item === "all") + if (item === "all") { faqs_data = data.faqs; + } else { data.faqs.forEach(faq => { if (faq.category.toString() === item) { faqs_data.push(faq); } - }); + }) } + }); + } let faqs = faqs_data.reduce((faq, ind) => { faq[ind.category] = [...(faq[ind.category] || []), ind];