2026-02-02 19:29:46 +00:00
|
|
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
|
|
|
import { Header } from './Header';
|
|
|
|
|
|
|
|
|
|
const meta = {
|
|
|
|
|
title: 'Components/Layout/Header',
|
|
|
|
|
component: Header,
|
|
|
|
|
tags: ['autodocs'],
|
|
|
|
|
decorators: [
|
|
|
|
|
(Story) => (
|
refactor(storybook): remove duplicate providers from stories (Phase 2)
Stories no longer wrap with QueryClientProvider, ToastProvider,
ThemeProvider, or MemoryRouter; global StorybookDecorator provides them.
- Route-specific pages use parameters.router.initialEntries
(ResetPasswordPage, VerifyEmailPage) or minimal MemoryRouter+Route
where useParams is needed (TrackDetailPage, PlaylistDetailPage).
- Stories that seeded query cache use useQueryClient() from global
decorator (FollowButton, CollaboratorManagement, CommentSection).
- Navbar, AuthLayout, DashboardLayout, Header, and 25+ story files
simplified to layout divs only.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-05 12:08:17 +00:00
|
|
|
<div className="h-screen bg-kodo-void">
|
|
|
|
|
<Story />
|
|
|
|
|
<div className="pt-24 px-8 text-white">
|
|
|
|
|
<h1>Page Content</h1>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-02 19:29:46 +00:00
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
parameters: {
|
|
|
|
|
layout: 'fullscreen',
|
|
|
|
|
},
|
|
|
|
|
} satisfies Meta<typeof Header>;
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
|
|
|
|
|
|
export const Default: Story = {};
|