feat(ui): Add support for Custom Modal component in Modal Service (#4752)
This commit is contained in:
1 parent
8788dae6a4
commit
2c183aa4a7
4 files changed
+33
-4
No files matched your search
@@ -9,7 +9,7 @@ export const useAppConfig = () => useContext(appConfigContext);
|
||||
export function AppConfigProvider({ children, value: initAppConfig }) {
|
||||
const [appConfig, setAppConfig] = useState(initAppConfig);
|
||||
|
||||
return <Provider value={[appConfig]}>{children}</Provider>;
|
||||
return <Provider value={[appConfig, setAppConfig]}>{children}</Provider>;
|
||||
}
|
||||
|
||||
AppConfigProvider.propTypes = {
|
||||
|
||||
Reference in new issue
Block a user