init redux
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import * as types from '../const'
|
||||
|
||||
export const setStars = (userId: string, value: number) => ({
|
||||
type: types.SET_STARS,
|
||||
payload: {
|
||||
id: userId,
|
||||
value,
|
||||
},
|
||||
})
|
||||
|
||||
export const incrementStart = (userId: string) => ({
|
||||
type: types.INCREMENT_STARS,
|
||||
payload: {
|
||||
id: userId
|
||||
}
|
||||
})
|
||||
|
||||
export const decrementStart = (userId: string) => ({
|
||||
type: types.INCREMENT_STARS,
|
||||
payload: {
|
||||
id: userId
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user