Improve default arguments and type checking
This commit is contained in:
@@ -16,6 +16,7 @@ const configContext = createContext<configContextType>({
|
|||||||
settings: {
|
settings: {
|
||||||
searchBar: true,
|
searchBar: true,
|
||||||
searchUrl: 'https://www.google.com/search?q=',
|
searchUrl: 'https://www.google.com/search?q=',
|
||||||
|
enabledModules: [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setConfig: () => {},
|
setConfig: () => {},
|
||||||
@@ -49,6 +50,7 @@ export function ConfigProvider({ children }: Props) {
|
|||||||
settings: {
|
settings: {
|
||||||
searchBar: true,
|
searchBar: true,
|
||||||
searchUrl: 'https://www.google.com/search?q=',
|
searchUrl: 'https://www.google.com/search?q=',
|
||||||
|
enabledModules: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user