Skip to content

Commit

Permalink
refactor: use custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice committed Aug 10, 2023
1 parent 6fd835c commit 142db50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
import { ThemeProvider } from "@emotion/react";
import { withThemeFromJSXProvider } from "@storybook/addon-styling";
import type { Preview } from "@storybook/react";
import { themes } from "@storybook/theming";
import React from "react";

import classicDarkTheme from "../src/classic/theme/reearthTheme/darkTheme"; // temp classic imports
Expand All @@ -18,6 +17,8 @@ import { Provider as DndProvider } from "../src/classic/util/use-dnd";
import { Provider as I18nProvider } from "../src/services/i18n";
import { GlobalStyles, darkTheme, lightTheme } from "../src/services/theme";

import theme from "./theme";

// apollo client that does nothing
const mockClient = new ApolloClient({
link: new ApolloLink(
Expand All @@ -41,7 +42,7 @@ const preview: Preview = {
controls: { expanded: true },
actions: { argTypesRegex: "^on.*" },
docs: {
theme: themes.dark,
theme,
},
},
decorators: [
Expand Down

0 comments on commit 142db50

Please sign in to comment.