Initial Commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
import { MemoryRouter } from "react-router-dom";
|
||||
import { Sidebar } from "./sidebar.js";
|
||||
|
||||
const meta: Meta<typeof Sidebar> = {
|
||||
component: Sidebar,
|
||||
title: "Layout/Sidebar",
|
||||
tags: ["autodocs"],
|
||||
decorators: [(Story) => <MemoryRouter><Story /></MemoryRouter>],
|
||||
};
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof Sidebar>;
|
||||
|
||||
export const Default: Story = {};
|
||||
export const WithActiveCrypto: Story = {
|
||||
decorators: [(Story) => <MemoryRouter initialEntries={["/crypto"]}><Story /></MemoryRouter>],
|
||||
};
|
||||
export const Playground: Story = {};
|
||||
Reference in New Issue
Block a user