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