@@ -27,7 +27,7 @@ export function Notes({noMargin, notes}: { notes: gedcomX.Note[], noMargin?: boo
27
27
{ notes . map ( ( note , i ) =>
28
28
< Article emoji = "" title = { note . getSubject ( ) } key = { i } >
29
29
< P > { note . getText ( ) } </ P >
30
- { note . getAttribution ( ) && < P > < Attribution attribution = { note . getAttribution ( ) } /> </ P > }
30
+ { note . getAttribution ( ) && < Attribution attribution = { note . getAttribution ( ) } /> }
31
31
</ Article > ) }
32
32
</ ArticleCollection >
33
33
}
@@ -109,7 +109,7 @@ export function SourceReference({reference}: { reference: gedcomX.SourceReferenc
109
109
< P > < ReactLink to = { `/sources/${ reference . description . substring ( 1 ) } ` } >
110
110
{ sourceTitle || reference . description }
111
111
</ ReactLink > </ P >
112
- { reference . attribution && < P > < Attribution attribution = { reference . attribution } /> </ P > }
112
+ { reference . attribution && < Attribution attribution = { reference . attribution } /> }
113
113
</ Article >
114
114
}
115
115
@@ -209,7 +209,7 @@ export function Evidence({evidenceReferences}) {
209
209
< Title emoji = { emojis . evidence } > { strings . gedcomX . subject . evidence } </ Title >
210
210
{ evidenceReferences . map ( ( evidence , i ) =>
211
211
< Article key = { i } >
212
- < ReactLink to = { linkTarget + evidence . resource . substring ( 1 ) } > { evidence . resource } </ ReactLink >
212
+ < P > < ReactLink to = { linkTarget + evidence . resource . substring ( 1 ) } > { evidence . resource } </ ReactLink > </ P >
213
213
< Attribution attribution = { evidence . attribution } />
214
214
</ Article > ) }
215
215
</ ArticleCollection >
@@ -223,9 +223,9 @@ export function SubjectArticles({subject, noMargin}: { subject: gedcomX.Subject,
223
223
224
224
return < >
225
225
{ media && media . length > 0 && < Gallery noMargin = { noMargin } >
226
- { media . map ( m => {
226
+ { media . map ( ( m , i ) => {
227
227
let credit = m . getCitations ( ) [ 0 ] . getValue ( ) ;
228
- return < div className = "relative" >
228
+ return < div className = "relative" key = { i } >
229
229
< Media mimeType = { m . mediaType } url = { m . getAbout ( ) }
230
230
alt = { m . getDescriptions ( ) . filter ( filterLang ) [ 0 ] ?. getValue ( ) } />
231
231
< div className = { "absolute bottom-0 py-1 px-4 w-full text-center backdrop-blur rounded-b-2xl"
0 commit comments