@@ -222,7 +222,9 @@ const ClaimReport: React.FC = () => {
222222 // Get subject info
223223 const subjectName = ( reportData as any ) ?. subject ?. name || subjectNode ?. name || claim . subjectNode ?. name
224224 const subjectType = subjectNode ?. entType || claim . subjectNode ?. entType
225- const subjectUri = subjectNode ?. nodeUri || claim . subjectNode ?. nodeUri ||
225+ const subjectUri =
226+ subjectNode ?. nodeUri ||
227+ claim . subjectNode ?. nodeUri ||
226228 ( typeof claim . subject === 'object' ? claim . subject . uri : claim . subject )
227229 const subjectDescrip = subjectNode ?. descrip || claim . subjectNode ?. descrip
228230 const subjectImage = subjectNode ?. image || claim . subjectNode ?. image
@@ -232,9 +234,7 @@ const ClaimReport: React.FC = () => {
232234 { /* Subject - who/what this claim is about */ }
233235 < Section >
234236 < Stack direction = 'row' spacing = { 2 } alignItems = 'flex-start' >
235- { subjectImage && (
236- < Avatar src = { subjectImage } sx = { { width : 56 , height : 56 } } />
237- ) }
237+ { subjectImage && < Avatar src = { subjectImage } sx = { { width : 56 , height : 56 } } /> }
238238 < Box >
239239 < Typography variant = 'h5' sx = { { fontWeight : 600 } } >
240240 { subjectName || 'Unknown Subject' }
@@ -251,7 +251,13 @@ const ClaimReport: React.FC = () => {
251251 target = '_blank'
252252 rel = 'noopener noreferrer'
253253 variant = 'body2'
254- sx = { { color : 'primary.main' , textDecoration : 'none' , '&:hover' : { textDecoration : 'underline' } , display : 'block' , mt : 0.5 } }
254+ sx = { {
255+ color : 'primary.main' ,
256+ textDecoration : 'none' ,
257+ '&:hover' : { textDecoration : 'underline' } ,
258+ display : 'block' ,
259+ mt : 0.5
260+ } }
255261 >
256262 { subjectUri } < OpenInNewIcon sx = { { fontSize : 12 , verticalAlign : 'middle' } } />
257263 </ Typography >
@@ -278,11 +284,7 @@ const ClaimReport: React.FC = () => {
278284
279285 { reportData . image && (
280286 < Box sx = { { my : 2 } } >
281- < img
282- src = { reportData . image }
283- alt = ''
284- style = { { width : '50vw' , maxWidth : '100%' , borderRadius : 8 } }
285- />
287+ < img src = { reportData . image } alt = '' style = { { width : '50vw' , maxWidth : '100%' , borderRadius : 8 } } />
286288 </ Box >
287289 ) }
288290
@@ -324,15 +326,17 @@ const ClaimReport: React.FC = () => {
324326 { hasMedia && (
325327 < Grid item xs = { 12 } sm = { 5 } md = { 4 } >
326328 { mediaIsVideo ? (
327- < Box sx = { {
328- position : 'relative' ,
329- width : '100%' ,
330- aspectRatio : '16/9' ,
331- borderRadius : '8px' ,
332- overflow : 'hidden' ,
333- backgroundColor : theme . palette . mode === 'dark' ? '#1a1a1a' : '#f5f5f5' ,
334- boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
335- } } >
329+ < Box
330+ sx = { {
331+ position : 'relative' ,
332+ width : '100%' ,
333+ aspectRatio : '16/9' ,
334+ borderRadius : '8px' ,
335+ overflow : 'hidden' ,
336+ backgroundColor : theme . palette . mode === 'dark' ? '#1a1a1a' : '#f5f5f5' ,
337+ boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
338+ } }
339+ >
336340 < video
337341 src = { mediaUrl }
338342 controls
@@ -346,16 +350,14 @@ const ClaimReport: React.FC = () => {
346350 />
347351 </ Box >
348352 ) : (
349- < Box sx = { {
350- borderRadius : '8px' ,
351- overflow : 'hidden' ,
352- boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
353- } } >
354- < img
355- src = { validation . image }
356- alt = ''
357- style = { { width : '100%' , display : 'block' } }
358- />
353+ < Box
354+ sx = { {
355+ borderRadius : '8px' ,
356+ overflow : 'hidden' ,
357+ boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
358+ } }
359+ >
360+ < img src = { validation . image } alt = '' style = { { width : '100%' , display : 'block' } } />
359361 </ Box >
360362 ) }
361363 </ Grid >
@@ -372,7 +374,11 @@ const ClaimReport: React.FC = () => {
372374 ) }
373375 { ( validation . sourceURI || validation . source_link ) && (
374376 < Typography variant = 'caption' color = 'text.secondary' sx = { { display : 'block' , mt : 1 } } >
375- < a href = { validation . sourceURI || validation . source_link } target = '_blank' rel = 'noopener noreferrer' >
377+ < a
378+ href = { validation . sourceURI || validation . source_link }
379+ target = '_blank'
380+ rel = 'noopener noreferrer'
381+ >
376382 { validation . sourceURI || validation . source_link }
377383 </ a >
378384 </ Typography >
@@ -405,15 +411,17 @@ const ClaimReport: React.FC = () => {
405411 { hasMedia && (
406412 < Grid item xs = { 12 } sm = { 5 } md = { 4 } >
407413 { mediaIsVideo ? (
408- < Box sx = { {
409- position : 'relative' ,
410- width : '100%' ,
411- aspectRatio : '16/9' ,
412- borderRadius : '8px' ,
413- overflow : 'hidden' ,
414- backgroundColor : theme . palette . mode === 'dark' ? '#1a1a1a' : '#f5f5f5' ,
415- boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
416- } } >
414+ < Box
415+ sx = { {
416+ position : 'relative' ,
417+ width : '100%' ,
418+ aspectRatio : '16/9' ,
419+ borderRadius : '8px' ,
420+ overflow : 'hidden' ,
421+ backgroundColor : theme . palette . mode === 'dark' ? '#1a1a1a' : '#f5f5f5' ,
422+ boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
423+ } }
424+ >
417425 < video
418426 src = { mediaUrl }
419427 controls
@@ -427,16 +435,14 @@ const ClaimReport: React.FC = () => {
427435 />
428436 </ Box >
429437 ) : (
430- < Box sx = { {
431- borderRadius : '8px' ,
432- overflow : 'hidden' ,
433- boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
434- } } >
435- < img
436- src = { attestation . image }
437- alt = ''
438- style = { { width : '100%' , display : 'block' } }
439- />
438+ < Box
439+ sx = { {
440+ borderRadius : '8px' ,
441+ overflow : 'hidden' ,
442+ boxShadow : '0 2px 8px rgba(0,0,0,0.08)'
443+ } }
444+ >
445+ < img src = { attestation . image } alt = '' style = { { width : '100%' , display : 'block' } } />
440446 </ Box >
441447 ) }
442448 </ Grid >
@@ -453,7 +459,11 @@ const ClaimReport: React.FC = () => {
453459 ) }
454460 { ( attestation . sourceURI || attestation . source_link ) && (
455461 < Typography variant = 'caption' color = 'text.secondary' sx = { { display : 'block' , mt : 1 } } >
456- < a href = { attestation . sourceURI || attestation . source_link } target = '_blank' rel = 'noopener noreferrer' >
462+ < a
463+ href = { attestation . sourceURI || attestation . source_link }
464+ target = '_blank'
465+ rel = 'noopener noreferrer'
466+ >
457467 { attestation . sourceURI || attestation . source_link }
458468 </ a >
459469 </ Typography >
0 commit comments