Skip to content

Instantly share code, notes, and snippets.

case SET_IMAGE_LIKE: {
if (action.payload) {
return {
...state,
allImages: state.allImages.map((image) => {
if (image.id === action.payload.imageId) {
image.likes = [...image.likes, action.payload];
return image;
} else {
return image;
[
1068, 1081, 1151, 1294, 1379, 1588, 1665, 1845, 2200,
2294, 2360, 2360, 2393, 2619, 2676, 2716, 2771, 2775,
2815, 2906, 2981, 3097, 3117, 3167, 3195, 3260, 3265,
3275, 3276, 3286, 3341, 3371, 3412, 3423, 3453, 3561,
3611, 3636, 3659, 3753, 3777, 3834, 3855, 3863, 3863,
3873, 3906, 3949, 3960, 3972, 4012, 4079, 4232, 4343,
4453, 4548, 4572, 4610, 4654, 4734, 4898, 4914, 4929,
4996, 5011, 5068, 5307, 5307, 5412, 5458, 5463, 5470,
5482, 5559, 5730, 5908, 5923, 6050, 6304, 6305, 6336,