Adding redux

This commit is contained in:
2024-09-22 21:55:57 +02:00
parent 9ee066b10c
commit 5516900b1b
7 changed files with 221 additions and 14 deletions

11
src/services/action.js Normal file
View File

@@ -0,0 +1,11 @@
export const selectPoster = (movieId, posterId) => ({
type: "SELECT_POSTER",
movieId,
posterId,
});
export const deselectPoster = (movieId, posterId) => ({
type: "DESELECT_POSTER",
movieId,
posterId,
});