days wishes components

This commit is contained in:
memeriau
2022-01-24 14:26:36 +01:00
parent 6d0134cb63
commit 3fd6741a78
7 changed files with 150 additions and 94 deletions

11
src/utils/useAction.ts Normal file
View File

@@ -0,0 +1,11 @@
import { useDispatch } from "react-redux"
const useAction = (action: (...args: any[]) => any): any => {
const dispatch = useDispatch()
return (...args: any[]) => {
dispatch(action(...args))
}
}
export default useAction