Skip to content

Commit

Permalink
refactor: regenerate radix stories (#4256)
Browse files Browse the repository at this point in the history
After class names change
  • Loading branch information
TrySound authored Oct 9, 2024
1 parent 666b7e3 commit bdb9860
Show file tree
Hide file tree
Showing 14 changed files with 201 additions and 235 deletions.
4 changes: 3 additions & 1 deletion packages/sdk-cli/src/generate-stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ const generateComponentImports = ({
};

const getStoriesImports = ({ hasState }: { hasState: boolean }) =>
hasState ? `import { useState } from "react";\n` : "";
hasState
? `import { useVariableState } from "@webstudio-is/react-sdk/runtime";\n`
: "";

const getStoriesExports = (name: string, css: string) => `
export default {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bdb9860

Please sign in to comment.