Skip to content

Commit

Permalink
Update faq-item.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
akhil0203 authored Apr 12, 2024
1 parent 8465aac commit 682298a
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions documentation-website/src/components/faq-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,39 @@ const FaqItem = ({
};

return (
<li
tabIndex={index + ONE}
onKeyDown={handleKeyDown}
className={'faq-item'}
aria-expanded={isOpen}
role="button"
onClick={() => toggleOpen()}
>
<div className="accordion-section">
<h2>
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
<Lang lnkey={`faq.questions.title_${ index + ONE }`} />
}
</h2>
{isOpen ?
<span className="up-arrow"></span>
:
<span className="down-arrow"></span>
}
</div>
{isOpen &&
<p>
<li
tabIndex={index + ONE}
onKeyDown={handleKeyDown}
className={'faq-item'}
aria-expanded={isOpen}
role="button"
onClick={() => toggleOpen()}
>
<div className="accordion-section">
<h2>
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
<Lang lnkey={`faq.questions.description_${ index + ONE }`} />
<Lang lnkey={`faq.questions.title_${ index + ONE }`} />
}
</p>
}
</li>
);
</h2>
{isOpen ?
<span className="up-arrow"></span>
:
<span className="down-arrow"></span>
}
</div>
{isOpen &&

Check warning on line 51 in documentation-website/src/components/faq-item.tsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 6 spaces but found 4
<p>
{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
<Lang lnkey={`faq.questions.description_${ index + ONE }`} />
}
</p>
}

Check warning on line 59 in documentation-website/src/components/faq-item.tsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 6 spaces but found 4
</li>

Check warning on line 60 in documentation-website/src/components/faq-item.tsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 4 spaces but found 2
);

Check warning on line 61 in documentation-website/src/components/faq-item.tsx

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 2 spaces but found 0
};

export default FaqItem;

0 comments on commit 682298a

Please sign in to comment.