Commit 7d1589d1 authored by Jordan Frankfurt's avatar Jordan Frankfurt

fixing from cherry-pick process

parent 26b603cc
...@@ -91,6 +91,11 @@ export function useCloseModal(_modal: ApplicationModal): () => void { ...@@ -91,6 +91,11 @@ export function useCloseModal(_modal: ApplicationModal): () => void {
return useCallback(() => dispatch(setOpenModal(null)), [dispatch]) return useCallback(() => dispatch(setOpenModal(null)), [dispatch])
} }
export function useOpenModal(modal: ApplicationModal): () => void {
const dispatch = useAppDispatch()
return useCallback(() => dispatch(setOpenModal(modal)), [dispatch, modal])
}
export function useToggleWalletModal(): () => void { export function useToggleWalletModal(): () => void {
return useToggleModal(ApplicationModal.WALLET) return useToggleModal(ApplicationModal.WALLET)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment