Storybook (#328)
* feat(docs): add interactive examples and API references for Button, Card, and LoadingFallback components - Updated dependencies - Set `retries` to a fixed value of 3 for consistent test retries across environments. - Increased `timeout` from 60 seconds to 120 seconds to allow more time for tests to complete. - Reduced `expect` timeout from 10 seconds to 5 seconds for quicker feedback on assertions.
This commit is contained in:
committed by
GitHub
parent
360ea30f4b
commit
ad427365c9
32
apps/dev-tool/app/components/page.tsx
Normal file
32
apps/dev-tool/app/components/page.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import { withI18n } from '../../lib/i18n/with-i18n';
|
||||
import { DocsContent } from './components/docs-content';
|
||||
import { DocsHeader } from './components/docs-header';
|
||||
import { DocsSidebar } from './components/docs-sidebar';
|
||||
|
||||
type ComponentDocsPageProps = {
|
||||
searchParams: Promise<{
|
||||
component: string;
|
||||
category: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
async function ComponentDocsPage(props: ComponentDocsPageProps) {
|
||||
let { component, category } = await props.searchParams;
|
||||
|
||||
if (!component) {
|
||||
component = 'Input';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="bg-background flex h-screen">
|
||||
<DocsSidebar selectedComponent={component} selectedCategory={category} />
|
||||
|
||||
<div className="flex flex-1 flex-col">
|
||||
<DocsHeader selectedComponent={component} />
|
||||
<DocsContent selectedComponent={component} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default withI18n(ComponentDocsPage);
|
||||
Reference in New Issue
Block a user