Skip to content

Commit

Permalink
feat(superset-ui-style): export ThemeProvider and useTheme from emoti…
Browse files Browse the repository at this point in the history
…on-theming
  • Loading branch information
ktmud authored and zhaoyongjie committed Nov 26, 2021
1 parent b3dbd0e commit 87f0090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// themeDecorator.js
import React from "react"
import { ThemeProvider } from 'emotion-theming';
import { supersetTheme } from '@superset-ui/style';
import { supersetTheme, ThemeProvider } from '@superset-ui/style';

const ThemeDecorator = storyFn => (
<ThemeProvider theme={supersetTheme}>{storyFn()}</ThemeProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Provides a style object containing a variety of style parameters for theming Sup
## Usage

```ts
import { ThemeProvider } from 'emotion-theming';
import styled, { supersetTheme } from '@superset-ui/style';
import styled, { supersetTheme, ThemeProvider } from '@superset-ui/style';

// use emotion api as normal, but the theme uses the correct types
const MyHeader = styled.h1`
Expand Down

0 comments on commit 87f0090

Please sign in to comment.