Skip to content

Commit

Permalink
docs(combobox): update to use local chromatic preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mdt2 authored and pfulton committed Feb 14, 2024
1 parent 84e1ee9 commit 2a32857
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/combobox/stories/combobox.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import isChromatic from "chromatic/isChromatic";

import { html } from "lit";

import { Template } from "./template";
Expand Down Expand Up @@ -233,10 +231,10 @@ const chromaticKitchenSink = (args) => html`
</div>
`;

export const Default = (args) => isChromatic() ? chromaticKitchenSink(args) : Template(args);
export const Default = (args) => window.isChromatic() ? chromaticKitchenSink(args) : Template(args);
Default.args = {};

export const Quiet = (args) => isChromatic()
export const Quiet = (args) => window.isChromatic()
? chromaticKitchenSink(args)
: Template({
...args
Expand Down

0 comments on commit 2a32857

Please sign in to comment.