Skip to content

Commit 3762d17

Browse files
refactor(theme): remove unnecessary CallbackParam
1 parent ebdce68 commit 3762d17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/context/theme.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createContext, useContext } from 'react';
22

3-
import { Callback, CallbackParam } from 'lib/model/callback';
3+
import { Callback } from 'lib/model/callback';
44

55
export type Theme = 'system' | 'dark' | 'light';
66
export interface ThemeContextType {
@@ -12,8 +12,7 @@ export interface ThemeContextType {
1212
export const ThemeContext = createContext<ThemeContextType>({
1313
dark: false,
1414
theme: 'system',
15-
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
16-
setTheme: (param: CallbackParam<Theme>) => {},
15+
setTheme: () => {},
1716
});
1817

1918
export function useTheme(): ThemeContextType {

0 commit comments

Comments
 (0)