24 lines
410 B
TypeScript
24 lines
410 B
TypeScript
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
|
|
}
|
|
})
|