Skip to content

Commit

Permalink
chore(ui): remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
guoda-puidokaite committed Dec 5, 2024
1 parent 3bb7f81 commit 91e84fa
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
import { ThemeToggle } from "./ThemeToggle.component"
//import { StyleProvider } from "../StyleProvider/index"

export default {
title: "WIP/ThemeToggle",
component: ThemeToggle,
argTypes: {},
// // Comment out decorator for now, as all StyleProviders read and write to the same key "juno-theme" in localStorage:
// decorators: [
// (Story, context) => {
// const theme = context.args.theme
// return (
// <StyleProvider theme={theme}>
// <div className="jn-p-12" style={{ minHeight: "250px" }}>
// <Story />
// <p> Some content. </p>
// </div>
// </StyleProvider>
// )
// },
// ],
}

export const Default = {
parameters: {},
args: {},
}

// // Comment out for now as the story will not work: The theme found in local storage and provided by the Decorator will override the prop.
// export const LightTheme = {
// args: {
// theme: "theme-light",
// },
// }

export const Disabled = {
args: {
disabled: true,
Expand Down

0 comments on commit 91e84fa

Please sign in to comment.