Skip to content

Commit

Permalink
match jscodeshift spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Jun 14, 2023
1 parent 03ccaf0 commit 74fb6f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
const aSlice = createSlice({
name: 'name',
initialState: todoAdapter.getInitialState(),

reducers: (create) => ({
property: create.reducer(() => {}),

method: create.reducer((state, action) => {
todoAdapter.setMany(state, action);
}),

identifier: create.reducer(todoAdapter.removeOne),
preparedProperty: create.preparedReducer((todo) => ({ payload: { id: nanoid(), ...todo } }), () => {}),

preparedMethod: create.preparedReducer((todo) => {
return { payload: { id: nanoid(), ...todo } }
}, (state, action) => {
todoAdapter.setMany(state, action);
}),

preparedIdentifier: create.preparedReducer(withPayload(), todoAdapter.setMany)
})
})

0 comments on commit 74fb6f3

Please sign in to comment.