Skip to content

Commit

Permalink
test: add examples for mobile/desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext committed Dec 4, 2024
1 parent ab79c71 commit a8b9445
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { ChatContextProps } from "@/components/ContextProviders/ChatProvide
import { ChatContext } from "@/components/ContextProviders/ChatProvider";
import { DemoContext } from "@/components/ContextProviders/Demo";

import { CHROMATIC_MOBILE_ONLY } from "../../../../../.storybook/chromatic";
import { MobileExportButtons } from "./MobileExportButtons";

const ChatDecorator: Story["decorators"] = (Story, { parameters }) => (
Expand Down Expand Up @@ -40,6 +41,7 @@ const meta: Meta<typeof MobileExportButtons> = {
viewport: {
defaultViewport: "mobile1",
},
...CHROMATIC_MOBILE_ONLY,
},
args: {
closeMobileLessonPullOut: () => {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { ChatContextProps } from "@/components/ContextProviders/ChatProvide
import { ChatContext } from "@/components/ContextProviders/ChatProvider";
import { DemoContext } from "@/components/ContextProviders/Demo";

import { CHROMATIC_DESKTOP_ONLY } from "../../../../../.storybook/chromatic";
import ExportButtons from "./";

const ChatDecorator: Story["decorators"] = (Story, { parameters }) => (
Expand Down Expand Up @@ -42,6 +43,9 @@ const meta: Meta<typeof ExportButtons> = {
sectionRefs: {},
documentContainerRef: { current: null },
},
parameters: {
...CHROMATIC_DESKTOP_ONLY,
},
};

export default meta;
Expand Down

0 comments on commit a8b9445

Please sign in to comment.