Skip to content

Commit

Permalink
Merge branch 'master' of github.com:meshery/play into prettier-setup
Browse files Browse the repository at this point in the history
Signed-off-by: lakshya <[email protected]>
  • Loading branch information
lakshz committed May 6, 2024
2 parents 958187e + 3338886 commit e953f36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 2 additions & 3 deletions site/src/components/Faq/faqSection.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down Expand Up @@ -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;
}
Expand Down
10 changes: 6 additions & 4 deletions site/src/components/Faq/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ import remarkGfm from 'remark-gfm';
const Faq = (props) => {
let faq_keys = [];
let faqs_data = [];
if (props.category === undefined) faqs_data = data.faqs;
else {
if (props.category === undefined) {
faqs_data = data.faqs;
} else {
props.category.forEach((item) => {
if (item === 'all') faqs_data = data.faqs;
else {
if (item === 'all') {
faqs_data = data.faqs;
} else {
data.faqs.forEach((faq) => {
if (faq.category.toString() === item) {
faqs_data.push(faq);
Expand Down

0 comments on commit e953f36

Please sign in to comment.