-
|
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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I figured it out. `export const MyViewWrapper: FormViewerWrapper = ({children)} => { export const myView = view.withViewerWrapper(MyViewWrapper); And then everything was happy again. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @GYavicoli Yes, this is the correct way. |
Beta Was this translation helpful? Give feedback.
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.