- Batch 13 (Library/Profile): UploadModal, FollowButton - Batch 14 (Settings): AccountSettings, NotificationSettings - Batch 15 (Layout): DashboardLayout, Header, Sidebar - Batch 16 (Search): SearchBar, Search - Verified successful build of all stories.
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { Header } from './Header';
|
|
import { BrowserRouter } from 'react-router-dom';
|
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
const queryClient = new QueryClient();
|
|
|
|
const meta = {
|
|
title: 'Components/Layout/Header',
|
|
component: Header,
|
|
tags: ['autodocs'],
|
|
decorators: [
|
|
(Story) => (
|
|
<BrowserRouter>
|
|
<QueryClientProvider client={queryClient}>
|
|
<TooltipProvider>
|
|
<div className="h-screen bg-kodo-void">
|
|
{/* Header is fixed, so we need a container that mimics the body */}
|
|
<Story />
|
|
<div className="pt-24 px-8 text-white">
|
|
<h1>Page Content</h1>
|
|
</div>
|
|
</div>
|
|
</TooltipProvider>
|
|
</QueryClientProvider>
|
|
</BrowserRouter>
|
|
),
|
|
],
|
|
parameters: {
|
|
layout: 'fullscreen',
|
|
},
|
|
} satisfies Meta<typeof Header>;
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const Default: Story = {};
|