You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/08/31 22:59:28 UTC
[superset] branch hugh/rbac-global updated: add provider context to
menu app
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a commit to branch hugh/rbac-global
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/hugh/rbac-global by this push:
new 3dd3e41 add provider context to menu app
3dd3e41 is described below
commit 3dd3e41c00648febb922088fb5c2be329909cac3
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue Aug 31 15:58:12 2021 -0700
add provider context to menu app
---
superset-frontend/src/views/menu.tsx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/views/menu.tsx b/superset-frontend/src/views/menu.tsx
index 35f6252..68b72d7 100644
--- a/superset-frontend/src/views/menu.tsx
+++ b/superset-frontend/src/views/menu.tsx
@@ -27,6 +27,9 @@ import { ThemeProvider } from '@superset-ui/core';
import Menu from 'src/components/Menu/Menu';
import { theme } from 'src/preamble';
+import { Provider } from 'react-redux';
+import { store } from './store';
+
const container = document.getElementById('app');
const bootstrapJson = container?.getAttribute('data-bootstrap') ?? '{}';
const bootstrap = JSON.parse(bootstrapJson);
@@ -40,7 +43,9 @@ const app = (
// @ts-ignore: emotion types defs are incompatible between core and cache
<CacheProvider value={emotionCache}>
<ThemeProvider theme={theme}>
- <Menu data={menu} />
+ <Provider store={store}>
+ <Menu data={menu} />
+ </Provider>
</ThemeProvider>
</CacheProvider>
);