mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: rendering for 18
This commit is contained in:
@@ -43,7 +43,7 @@ const emotionCache = createCache({
|
|||||||
key: 'menu',
|
key: 'menu',
|
||||||
});
|
});
|
||||||
|
|
||||||
const app = (
|
const App = () => (
|
||||||
// @ts-ignore: emotion types defs are incompatible between core and cache
|
// @ts-ignore: emotion types defs are incompatible between core and cache
|
||||||
<CacheProvider value={emotionCache}>
|
<CacheProvider value={emotionCache}>
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
@@ -63,4 +63,4 @@ const app = (
|
|||||||
</CacheProvider>
|
</CacheProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(app, document.getElementById('app-menu'));
|
ReactDOM.render(<App />, document.getElementById('app-menu'));
|
||||||
|
|||||||
Reference in New Issue
Block a user