Changes
3 changed files (+5/-2)
-
-
@@ -7,7 +7,6 @@ import { ThemeProvider } from "../src/lib.ts";import css from "./preview.module.css"; import { withIDBBackend } from "./decorators/withIDBBackend.tsx"; import { withInmemoryRouter } from "./decorators/withInmemoryRouter.tsx"; export default { decorators: [
-
@@ -16,7 +15,6 @@ <ThemeProvider className={css.theme}><Story /> </ThemeProvider> ), withInmemoryRouter(), withIDBBackend(), ], } satisfies Preview;
-
-
-
@@ -5,10 +5,13 @@ import { create } from "@bufbuild/protobuf";import type { Meta, StoryObj } from "@storybook/react"; import { WorkspaceSchema } from "@yamori/proto/yamori/workspace/v1/workspace_pb.js"; import { withInmemoryRouter } from "../../../.storybook/decorators/withInmemoryRouter.tsx"; import { WorkspaceList } from "./WorkspaceList.tsx"; export default { component: WorkspaceList, decorators: [withInmemoryRouter({ initialURL: "/" })], args: { workspaces: [ create(WorkspaceSchema, {
-
-
-
@@ -4,6 +4,7 @@import type { Meta, StoryObj } from "@storybook/react"; import { withMockedBackend } from "../../../.storybook/decorators/withMockedBackend.tsx"; import { withInmemoryRouter } from "../../../.storybook/decorators/withInmemoryRouter.tsx"; import { Create, List } from "../../mocks/yamori/workspace/v1/workspace_service.ts"; import { Page } from "./page.tsx";
-
@@ -13,6 +14,7 @@ component: Page,parameters: { layout: "fullscreen", }, decorators: [withInmemoryRouter({ initialURL: "/" })], } satisfies Meta<typeof Page>; type Story = StoryObj<typeof Page>;
-