Reformat code with Prettier's new rules.
This commit is contained in:
@@ -5,14 +5,14 @@ import themes from '../themes'
|
||||
const defaultTheme = () => {
|
||||
return (
|
||||
Object.keys(themes).find(
|
||||
(t) => themes[t].themeName === config.defaultTheme
|
||||
(t) => themes[t].themeName === config.defaultTheme,
|
||||
) || 'DarkTheme'
|
||||
)
|
||||
}
|
||||
|
||||
export const themeReducer = (
|
||||
previousState = defaultTheme(),
|
||||
{ type, payload }
|
||||
{ type, payload },
|
||||
) => {
|
||||
if (type === CHANGE_THEME) {
|
||||
return payload
|
||||
|
||||
Reference in New Issue
Block a user