+
+
+
MetaMask Mobile App Demo
+
+
+
+
+ {/* DApp Connection Panel */}
+
+
Connection
+
+
+
+ {!dappConnected ? (
+
+ ) : (
+
+ )}
+
+
+ {qrCodeData && !dappConnected && (
+
+ {" "}
+ {/* Centering the content */}
+
+
Connect with Mobile Wallet
+ {isSessionExpired ? (
+ Session expired
+ ) : (
+ sessionTimeLeft > 0 && Expires in {formatTimeLeft(sessionTimeLeft)}
+ )}
+
+
+
+
+
+
+ {isSessionExpired ? "This QR code has expired." : "Scan with your mobile wallet or use the link below."}
+
+ {!isSessionExpired ? (
+
+ Open in MetaMask Mobile
+
+ ) : (
+
+ )}
+
+
+ )}
+
+
+
+ {/* DApp Actions */}
+
+
Multi-Chain Test Actions
+
+
+
+
+
+
+
+ {results && (
+
+ )}
+
+
+ {/* DApp Activity Log */}
+
+
Activity Log
+
+
+ {dappLogs.length === 0 ? (
+
No activity yet
+ ) : (
+
+ {dappLogs.map((log) => (
+
+
+ {log.type}
+ {log.timestamp.toLocaleTimeString()}
+
+
{log.content}
+
+ ))}
+
+ )}
+
+
+