Changed format on action types and reducer names for those already migrated to RTK

This commit is contained in:
Alejandro Celaya
2022-11-09 18:19:07 +01:00
parent 89423737e8
commit fe85291772
15 changed files with 48 additions and 49 deletions

View File

@@ -82,7 +82,7 @@ const toReducer = (prepare: SettingsPrepareAction) => ({ reducer: commonReducer,
const toPreparedAction: SettingsPrepareAction = (payload: Settings) => ({ payload });
const { reducer, actions } = createSlice({
name: 'settingsReducer',
name: 'shlink/settings',
initialState,
reducers: {
toggleRealTimeUpdates: toReducer((enabled: boolean) => toPreparedAction({ realTimeUpdates: { enabled } })),