-
-
Save quicksnap/4051b5f6a681d04b84d940fa3901ada2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addToCart(productIds: string[]) { | |
return { | |
type: 'ADD_TO_CART', | |
payload: { | |
productIds: productIds, | |
timeAdded: new Date(), | |
}, | |
}; | |
} | |
function filterItems(filterType: FilterType) { | |
return { | |
type: 'FILTER_ITEMS', | |
payload: { | |
filterType: filterType, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment