init redux

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-01-15 09:24:56 +03:00
parent 05b5843c08
commit 2d2ed497ca
11 changed files with 153 additions and 9 deletions
+23
View File
@@ -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
}
})