You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/07/31 15:46:53 UTC
(superset) branch AntdThemeProvider-in-sotrybook created (now 0ee706f214)
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch AntdThemeProvider-in-sotrybook
in repository https://gitbox.apache.org/repos/asf/superset.git
at 0ee706f214 adding AntdThemeProvider to storybook config
This branch includes the following new commits:
new 0ee706f214 adding AntdThemeProvider to storybook config
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(superset) 01/01: adding AntdThemeProvider to storybook config
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch AntdThemeProvider-in-sotrybook
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 0ee706f2146e36efc4c3f8bf285f4f0fcb030826
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Wed Jul 31 09:46:39 2024 -0600
adding AntdThemeProvider to storybook config
---
superset-frontend/.storybook/preview.jsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/superset-frontend/.storybook/preview.jsx b/superset-frontend/.storybook/preview.jsx
index 42784d2d18..ef27f3591e 100644
--- a/superset-frontend/.storybook/preview.jsx
+++ b/superset-frontend/.storybook/preview.jsx
@@ -18,6 +18,7 @@
*/
import { withJsx } from '@mihkeleidast/storybook-addon-source';
import { supersetTheme, ThemeProvider } from '@superset-ui/core';
+import { AntdThemeProvider } from '../src/components/AntdThemeProvider';
import { combineReducers, createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
@@ -35,10 +36,10 @@ const store = createStore(
const themeDecorator = Story => (
<ThemeProvider theme={supersetTheme}>
- <>
+ <AntdThemeProvider>
<GlobalStyles />
<Story />
- </>
+ </AntdThemeProvider>
</ThemeProvider>
);