Skip to content

Commit

Permalink
fix(ui): split storybook plugin and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 5, 2024
1 parent 8fc7d4e commit a4508f1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
*/

import React, { useEffect, useState } from "react"
import { StyleProvider } from "../../deprecated_js/StyleProvider/StyleProvider.component"
import { getCurrentThemeMode } from "../../../.storybook/juno-addon/themes"
import { StyleProvider } from "../../components/StyleProvider/StyleProvider.component"
import { addons } from "@storybook/preview-api"

const STORAGE_KEY = "__junoThemeMode"
const getCurrentThemeMode = () => localStorage.getItem(STORAGE_KEY) || "dark"

// allows to implement themed components in the storybook
// component adjusts to the selected theme and enables tailwind classes.
export function JunoComponentWrapper(props: JunoComponentWrapperProps) {
Expand Down

0 comments on commit a4508f1

Please sign in to comment.