File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed
mithril-explorer/src/components
CertifyCardanoTransactionsModal Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,10 @@ export default function TransactionCertificationResult({
90
90
</ Alert >
91
91
) : (
92
92
< Alert variant = "danger" className = "mb-2" >
93
- < Alert . Heading > Mithril could not certify the transactions</ Alert . Heading >
93
+ < Alert . Heading >
94
+ < i className = "text-danger bi bi-shield-slash" > </ i > Mithril could not certify the
95
+ transactions
96
+ </ Alert . Heading >
94
97
< p className = "mb-1" >
95
98
Either the transactions proof is invalid or all the transactions are not certified.
96
99
</ p >
Original file line number Diff line number Diff line change 1
1
import React , { useEffect , useState } from "react" ;
2
- import { Spinner , Table } from "react-bootstrap" ;
2
+ import { Alert , Spinner , Table } from "react-bootstrap" ;
3
3
import { formatProcessDuration } from "@/utils" ;
4
4
import CopyableHash from "#/CopyableHash" ;
5
5
import CopyButton from "#/CopyButton" ;
@@ -89,7 +89,7 @@ export default function CertificateVerifier({
89
89
90
90
verifyCertificateChain ( client , certificate . hash )
91
91
. catch ( ( err ) => {
92
- console . error ( "Certificate Chain verification error" , err ) ;
92
+ console . error ( "Certificate Chain verification error:\n " , err ) ;
93
93
setValidationError ( err ) ;
94
94
} )
95
95
. finally ( ( ) => setCurrentStep ( certificateValidationSteps . done ) ) ;
@@ -211,13 +211,12 @@ export default function CertificateVerifier({
211
211
< div key = { evt . id } > { evt . message } </ div >
212
212
) ) }
213
213
{ validationError !== undefined && (
214
- < tr >
215
- < td colSpan = { 2 } >
216
- < i className = "text-danger bi bi-x-circle-fill" > </ i > Invalid certificate chain:
217
- < br />
218
- { validationError . message }
219
- </ td >
220
- </ tr >
214
+ < Alert variant = "danger" className = "mt-2" >
215
+ < Alert . Heading >
216
+ < i className = "text-danger bi bi-shield-slash" > </ i > Invalid certificate chain
217
+ </ Alert . Heading >
218
+ < div className = { styles . error } > { validationError . toString ( ) } </ div >
219
+ </ Alert >
221
220
) }
222
221
</ div >
223
222
</ div >
Original file line number Diff line number Diff line change 11
11
.events > span {
12
12
flex : 1 1 0 ;
13
13
}
14
+
15
+ .error {
16
+ white-space : pre-wrap;
17
+ }
You can’t perform that action at this time.
0 commit comments