Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add default context value
dominik-zeglenbb175b2121ac
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsxindex 974063999c..c57d262af4 100644--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx@@ -46,7 +46,10 @@ interface IThemeContext {isDark: boolean;toggleTheme: () => void;}-export const ThemeContext = React.createContext<IThemeContext>(undefined);+export const ThemeContext = React.createContext<IThemeContext>({+ isDark: false,+ toggleTheme: () => undefined+});interface ThemeProviderProps {isDefaultDark?: boolean;