We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d995ea commit dbc09b5Copy full SHA for dbc09b5
src/mui.tsx
@@ -584,14 +584,10 @@ export function createDsfrCustomBrandingProvider(params: {
584
return { DsfrCustomBrandingProvider };
585
}
586
587
-const context_isGov = createContext<boolean | undefined>(undefined);
+const context_isGov = createContext<boolean>(true);
588
589
export function useIsGov() {
590
const isGov = useContext(context_isGov);
591
592
- if (isGov === undefined) {
593
- throw new Error("useIsGov must be used within a MuiThemeProvider");
594
- }
595
-
596
return { isGov };
597
0 commit comments