chore(alerts): time machine is two words :)
parent
3fd68bf88f
commit
55b2f78be6
|
@ -611,7 +611,7 @@ export const setXAxisLabel = (xAxisLabel: string): SetXAxisLabelAction => ({
|
|||
})
|
||||
|
||||
export const setCheckStatus = (checkStatus: RemoteDataState) => ({
|
||||
type: 'SET_TIMEMACHINE_CHECK_STATUS' as 'SET_TIMEMACHINE_CHECK_STATUS',
|
||||
type: 'SET_TIME_MACHINE_CHECK_STATUS' as 'SET_TIME_MACHINE_CHECK_STATUS',
|
||||
payload: {checkStatus},
|
||||
})
|
||||
|
||||
|
@ -619,17 +619,17 @@ export const setTimeMachineCheck = (
|
|||
checkStatus: RemoteDataState,
|
||||
check: Partial<Check>
|
||||
) => ({
|
||||
type: 'SET_TIMEMACHINE_CHECK' as 'SET_TIMEMACHINE_CHECK',
|
||||
type: 'SET_TIME_MACHINE_CHECK' as 'SET_TIME_MACHINE_CHECK',
|
||||
payload: {checkStatus, check},
|
||||
})
|
||||
|
||||
export const updateTimeMachineCheck = (checkUpdate: Partial<Check>) => ({
|
||||
type: 'UPDATE_TIMEMACHINE_CHECK' as 'UPDATE_TIMEMACHINE_CHECK',
|
||||
type: 'UPDATE_TIME_MACHINE_CHECK' as 'UPDATE_TIME_MACHINE_CHECK',
|
||||
payload: {checkUpdate},
|
||||
})
|
||||
|
||||
export const changeCheckType = (toType: CheckType) => ({
|
||||
type: 'CHANGE_TIMEMACHINE_CHECK_TYPE' as 'CHANGE_TIMEMACHINE_CHECK_TYPE',
|
||||
type: 'CHANGE_TIME_MACHINE_CHECK_TYPE' as 'CHANGE_TIME_MACHINE_CHECK_TYPE',
|
||||
payload: {toType},
|
||||
})
|
||||
|
||||
|
|
|
@ -829,20 +829,20 @@ export const timeMachineReducer = (
|
|||
})
|
||||
}
|
||||
|
||||
case 'SET_TIMEMACHINE_CHECK_STATUS': {
|
||||
case 'SET_TIME_MACHINE_CHECK_STATUS': {
|
||||
const {checkStatus} = action.payload
|
||||
|
||||
return {...state, alerting: {...state.alerting, checkStatus}}
|
||||
}
|
||||
|
||||
case 'SET_TIMEMACHINE_CHECK':
|
||||
case 'SET_TIME_MACHINE_CHECK':
|
||||
const alerting = {
|
||||
check: action.payload.check,
|
||||
checkStatus: action.payload.checkStatus,
|
||||
}
|
||||
return {...state, alerting}
|
||||
|
||||
case 'UPDATE_TIMEMACHINE_CHECK':
|
||||
case 'UPDATE_TIME_MACHINE_CHECK':
|
||||
return produce(state, draftState => {
|
||||
draftState.alerting.check = {
|
||||
...draftState.alerting.check,
|
||||
|
@ -862,7 +862,7 @@ export const timeMachineReducer = (
|
|||
}
|
||||
})
|
||||
|
||||
case 'CHANGE_TIMEMACHINE_CHECK_TYPE':
|
||||
case 'CHANGE_TIME_MACHINE_CHECK_TYPE':
|
||||
return produce(state, draftState => {
|
||||
const exCheck = draftState.alerting.check
|
||||
|
||||
|
|
Loading…
Reference in New Issue