Add Desktop Notifications

This commit is contained in:
Steve Richter
2020-11-19 23:06:09 -05:00
committed by Deluan Quintão
parent b8d47d1db4
commit 2397a7e464
12 changed files with 99 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
import { SET_NOTIFICATIONS_STATE } from '../actions'
const initialState = {
notifications: false,
}
export const settingsReducer = (previousState = initialState, payload) => {
const { type, data } = payload
switch (type) {
case SET_NOTIFICATIONS_STATE:
return {
...previousState,
notifications: data
}
default:
return previousState
}
}