quintodrome/ui/src/reducers/themeReducer.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
210 B
JavaScript
Raw Normal View History

import { CHANGE_THEME } from '../actions'
export const themeReducer = (
previousState = 'DarkTheme',
{ type, payload }
) => {
if (type === CHANGE_THEME) {
return payload
}
return previousState
}