Skip to content

Commit

Permalink
fix(stake-pool-migration): resize modal as per screen size (#3302)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulnr7 authored Jun 13, 2024
1 parent 857dec4 commit 8bf7641
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react'
import {useWindowDimensions} from 'react-native'

import {useModal} from '../../components'
import {useSelectedWallet} from '../../features/WalletManager/Context/SelectedWalletContext'
Expand All @@ -12,7 +13,8 @@ export const usePoolTransitionModal = () => {
const [shownWallets, setShownWallets] = usePoolTransitionContext()
const {openModal} = useModal()
const strings = useStrings()
const modalHeight = 700
const screenHeight = useWindowDimensions().height
const modalHeight = screenHeight * 0.8

React.useEffect(() => {
if (!shownWallets.includes(wallet.id) && isPoolRetiring && poolTransition !== null) {
Expand Down

0 comments on commit 8bf7641

Please sign in to comment.