File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -966,6 +966,51 @@ export const DisputeResolutionDemo = () => {
966966 </ div >
967967 ) }
968968
969+ { /* Funding Step */ }
970+ { contractId && ! escrowData ?. metadata ?. funded && (
971+ < div className = 'mb-8 p-6 bg-white/5 rounded-lg border border-white/20' >
972+ < h3 className = 'text-xl font-semibold text-white mb-4' > 💰 Fund Escrow</ h3 >
973+ < p className = 'text-white/70 mb-6' >
974+ Now fund the escrow contract with 10 USDC to enable milestone management.
975+ </ p >
976+ < div className = 'text-center' >
977+ < Tooltip
978+ content = {
979+ ! isConnected || hooks . fundEscrow . isLoading ? (
980+ ! isConnected ? (
981+ < div className = 'text-center' >
982+ < div className = 'text-red-300 font-semibold mb-1' >
983+ 🔌 Wallet Not Connected
984+ </ div >
985+ < div className = 'text-xs text-gray-300' >
986+ Please connect your wallet to fund the escrow
987+ </ div >
988+ </ div >
989+ ) : (
990+ < div className = 'text-center' >
991+ < div className = 'text-yellow-300 font-semibold mb-1' >
992+ ⏳ Processing...
993+ </ div >
994+ < div className = 'text-xs text-gray-300' >
995+ Please wait for the funding transaction to complete
996+ </ div >
997+ </ div >
998+ )
999+ ) : null
1000+ }
1001+ position = 'top'
1002+ >
1003+ < button
1004+ onClick = { handleFundEscrow }
1005+ disabled = { ! isConnected || hooks . fundEscrow . isLoading }
1006+ className = 'px-8 py-3 bg-warning-500/20 hover:bg-warning-500/30 border border-warning-400/30 rounded-lg text-warning-300 hover:text-warning-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed'
1007+ >
1008+ { hooks . fundEscrow . isLoading ? 'Funding...' : 'Fund Escrow (10 USDC)' }
1009+ </ button >
1010+ </ Tooltip >
1011+ </ div >
1012+ </ div >
1013+ ) }
9691014
9701015 { /* Milestones Management */ }
9711016 { contractId && escrowData ?. metadata ?. funded && (
You can’t perform that action at this time.
0 commit comments