Skip to content

Commit a988da3

Browse files
authored
fix anonymous function warning (github#20810)
1 parent 841b05b commit a988da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lib/getThemeProps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const cssColorModeToJs: Record<string, string> = {
1515
dark: 'night',
1616
}
1717

18-
export const getThemeProps = (req: any, mode?: 'css') => {
18+
export function getThemeProps(req: any, mode?: 'css') {
1919
let cookieValue: {
2020
color_mode?: 'auto' | 'light' | 'dark'
2121
dark_theme?: { name: string }

0 commit comments

Comments
 (0)