Fix payment request modal UI

This commit is contained in:
Isha 2024-11-08 10:33:33 +05:30 committed by IshaVenikar
parent 6746b68793
commit 51d7dd7c57
2 changed files with 8 additions and 11 deletions

View File

@ -302,7 +302,7 @@ const Configure = () => {
toast({
id: 'sending-payment-request',
title: 'Check your wallet and approve payment request',
title: 'Check and approve payment request',
variant: 'loading',
onDismiss: dismiss,
});

View File

@ -95,10 +95,15 @@ const IFrame = ({
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: '800px',
width: '90%',
maxWidth: '1200px',
height: '600px',
maxHeight: '80vh',
overflow: 'auto',
boxShadow: 24,
borderRadius: '8px',
outline: 'none',
bgcolor: 'background.paper',
}}
>
<iframe
@ -106,20 +111,12 @@ const IFrame = ({
id="walletIframe"
src="http://localhost:3001/WalletEmbed"
width="100%"
height="300"
height="100%"
sandbox="allow-scripts allow-same-origin"
className="border rounded-md shadow-sm"
></iframe>
</Box>
</Modal>
{/* <iframe
onLoad={getDataFromWallet}
id="walletIframe"
src="http://localhost:3001"
width="0"
height="0"
sandbox="allow-scripts allow-same-origin"
></iframe> */}
</div>
);
};