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
+1
View File
@@ -3,3 +3,4 @@ export * from './dialogReducer'
export * from './playQueue'
export * from './albumView'
export * from './activityReducer'
export * from './settingsReducer'
+1
View File
@@ -23,6 +23,7 @@ const mapToAudioLists = (item) => {
trackId: id,
name: item.title,
singer: item.artist,
album: item.album,
albumId: item.albumId,
artistId: item.albumArtistId,
duration: item.duration,
+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
}
}