michael-s-molina commented on pull request #14092:
URL: https://github.com/apache/superset/pull/14092#issuecomment-820361154
Great improvement! We have so many advanced features that sometimes new
users feel overwhelmed.
One tip:
```
render(
<ThemeProvider theme={supersetTheme}>
<Provider store={store}>
<DatabaseModal
...
/>
</Provider>
</ThemeProvider>,
);
```
When using `render` from `spec/helpers/testing-library` the theme provider
is automatically included and you can also request the redux provider, the drag
and drop provider, and also initialize the redux state if you want.
The code above can be replaced by:
```
render(
<DatabaseModal
...
/>,
{ useRedux: true }
);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]