Improve default arguments and type checking

This commit is contained in:
Aj - Thomas
2022-05-10 20:36:38 +02:00
parent 2c461a6695
commit f3478587b1

View File

@@ -16,6 +16,7 @@ const configContext = createContext<configContextType>({
settings: {
searchBar: true,
searchUrl: 'https://www.google.com/search?q=',
enabledModules: [],
},
},
setConfig: () => {},
@@ -49,6 +50,7 @@ export function ConfigProvider({ children }: Props) {
settings: {
searchBar: true,
searchUrl: 'https://www.google.com/search?q=',
enabledModules: [],
},
});