Skip to content
Snippets Groups Projects

Ui refactor style

Merged Matthias Feyll requested to merge ui-refactor-style into ui-integration
10 files
+ 142
10
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -5,6 +5,8 @@ import {
} from '@api/api'
import { DeviceViewTabValues } from '@component/devices/view/device.view.tabs'
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
import { refreshUpdateTimer } from '@shared/reducer/routine.reducer'
import { Category, CategoryType } from '@shared/types/category.type'
import { REHYDRATE } from 'redux-persist'
import { RootState } from 'src/stores'
import '../routines/index'
@@ -129,6 +131,19 @@ startListening({
},
})
startListening({
predicate: (action) => setSelectedMne.match(action),
effect: async (action, listenerApi) => {
listenerApi.dispatch(refreshUpdateTimer(Category.TAB as CategoryType))
},
})
startListening({
predicate: (action) => setDevices.match(action),
effect: async (action, listenerApi) => {
listenerApi.dispatch(refreshUpdateTimer(Category.DEVICE as CategoryType))
},
})
/**
* On startup reset the selected device
Loading