This is an automated email from the ASF dual-hosted git repository. hugh pushed a commit to branch hugh/rbac-rm-3 in repository https://gitbox.apache.org/repos/asf/superset.git
commit 175425e244baa31dace40cc19ebd2db4fbf01576 Author: hughhhh <[email protected]> AuthorDate: Wed Sep 29 10:32:31 2021 -0700 add provider to right menu --- 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> );
