Skip to content

Commit

Permalink
fixed missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmogAdziashvili committed Jan 21, 2024
1 parent 0958e78 commit 5556d4c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .storybook/docs-container.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import { DocsContainer as BaseContainer } from "@storybook/addon-docs/blocks";
import { useDarkMode } from "storybook-dark-mode";
import { themes } from "@storybook/theming";

export const DocsContainer = ({ children, ...rest }) => {
const dark = useDarkMode();

return (
<BaseContainer {...rest} theme={dark ? themes.dark : themes.light}>
{children}
</BaseContainer>
);
};

0 comments on commit 5556d4c

Please sign in to comment.