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.
CallbackParam
1 parent ebdce68 commit 3762d17Copy full SHA for 3762d17
lib/context/theme.ts
@@ -1,6 +1,6 @@
1
import { createContext, useContext } from 'react';
2
3
-import { Callback, CallbackParam } from 'lib/model/callback';
+import { Callback } from 'lib/model/callback';
4
5
export type Theme = 'system' | 'dark' | 'light';
6
export interface ThemeContextType {
@@ -12,8 +12,7 @@ export interface ThemeContextType {
12
export const ThemeContext = createContext<ThemeContextType>({
13
dark: false,
14
theme: 'system',
15
- /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
16
- setTheme: (param: CallbackParam<Theme>) => {},
+ setTheme: () => {},
17
});
18
19
export function useTheme(): ThemeContextType {
0 commit comments