@@ -3,10 +3,11 @@ import { jsx, css } from '@emotion/react';
3
3
import React , { useContext , useState , useEffect } from 'react' ;
4
4
import ThemeContext from '../../../style/themes/ThemeContext' ;
5
5
import * as styles from '../styles' ;
6
- import { Row , Col , Image , Properties , IconFeatures } from "../../../components" ;
6
+ import { Row , Col , Image , Properties , IconFeatures , ResourceLink } from "../../../components" ;
7
7
import { useQuery } from '../../../dataManagement/api' ;
8
8
import { Header } from './Header' ;
9
9
import { prettifyEnum } from '../../../utils/labelMaker/config2labels' ;
10
+ import env from '../../../../.env.json' ;
10
11
11
12
import { useUrlState } from '../../../dataManagement/state/useUrlState' ;
12
13
@@ -67,6 +68,7 @@ export function Cluster({
67
68
68
69
export function RelatedOccurrence ( { original, reasons, related, ...props } ) {
69
70
const theme = useContext ( ThemeContext ) ;
71
+
70
72
return < article css = { styles . clusterCard ( { theme } ) } { ...props } >
71
73
< Row wrap = "nowrap" halfGutter = { 6 } style = { { padding : 12 } } >
72
74
< Col >
@@ -90,11 +92,12 @@ export function RelatedOccurrence({ original, reasons, related, ...props }) {
90
92
issueCount = { related . issues ?. length }
91
93
/>
92
94
</ div >
93
- < div >
94
- < Properties style = { { fontSize : 12 } } horizontal dense >
95
+ < div style = { { fontSize : 12 } } >
96
+ < Properties horizontal dense >
95
97
< T > Publisher</ T > < V > { related . publisherTitle } </ V >
96
98
< T > Dataset</ T > < V > { related . datasetTitle } </ V >
97
99
</ Properties >
100
+ < a onClick = { e => e . stopPropagation ( ) } href = { `${ env . GBIF_ORG } /occurrence/${ related . key } ` } > View on GBIF.org</ a >
98
101
</ div >
99
102
</ Col >
100
103
< Col grow = { false } shrink = { false } >
0 commit comments