fixing from cherry-pick process
This commit is contained in:
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user