|
My main.jsx has the following: My App has the following: I added another component outside the and that is rendering with the theme colors, however none of the Mui components in FormViewer or my Custom Component see the MUI theme. Any advice or direction would be appreciated. Thank you. |
Replies: 2 comments
|
I figured it out. `export const MyViewWrapper: FormViewerWrapper = ({children)} => { export const myView = view.withViewerWrapper(MyViewWrapper); And then everything was happy again. |
I figured it out.
I needed to create my own wrapper and pass the theme to the wrapper:
`export const MyViewWrapper: FormViewerWrapper = ({children)} => {
return (
{children}
)
}
export const myView = view.withViewerWrapper(MyViewWrapper);
myView.define(customComponent.model);
myView.withViewerWrapper(MuiLocalizationProvider);`
And then everything was happy again.