GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: create Accordion component and its stories by ashmitjsg · Pull Request #3121 · asyncapi/website Conversation
|
✅ Deploy Preview for asyncapi-website ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3121--asyncapi-website.netlify.app/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| type Story = StoryObj<typeof Accordion>; | ||
|
|
||
| const sampleAccordionItemList = [ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Make sure that this list is of AccordionItemType items only. Specify the AccordionItemType type for this variable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| accordionItems: AccordionItemType[]; | ||
| } | ||
|
|
||
| const Accordion = ({ accordionItems = [] }: AccordionProps) => { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
use export default function here and create a JSdoc above this function to describe the component.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| setActiveIndex: (index: number | null) => void; | ||
| } | ||
|
|
||
| const AccordionItem = ({ itemIndex, title, content, isActive, setActiveIndex }: AccordionItemProps) => { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
same as above.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| <div> | ||
| <Accordion accordionItems={faqList} /> | ||
| </div> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| <div> | |
| <Accordion accordionItems={faqList} /> | |
| </div> | |
| <Accordion accordionItems={faqList} /> |
No need to wrap this under a div.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import { faqList } from './FAQList'; | ||
|
|
||
| /** | ||
| * This is the FAQ component. It tells the user about the frequently asked questions. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Specify that this component has been created to render FAQ list inside MDX file.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| /** | ||
| * This is the FAQ component. It tells the user about the frequently asked questions. | ||
| */ | ||
| const FAQ = () => { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Use export default function here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.