fixing from cherry-pick process

This commit is contained in:
Jordan Frankfurt 2022-12-15 16:45:04 -06:00
parent 26b603cc2e
commit 7d1589d1df

@ -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)
} }