File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
app/[locale]/(user)/datasets/components/Card Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ interface Dataset {
2727}
2828
2929const Cards = ( { data } : { data : Dataset } ) => {
30+
31+
3032 function getMetadataValue ( data : Dataset , label : string ) : string | null {
3133 const metadataEntry = data . metadata . find (
3234 ( entry ) => entry . metadata_item . label === label
@@ -107,19 +109,7 @@ const Cards = ({ data }: { data: Dataset }) => {
107109 { getMetadataValue ( data , 'Update Frequency' ) || 'NA' }
108110 </ Text >
109111 </ div >
110- < Text
111- color = "default"
112- className = "text-textSubdued"
113- variant = "bodySm"
114- fontWeight = "regular"
115- >
116- Reference Period:{ ' ' }
117- { formatDateString ( getMetadataValue ( data , 'Period From' ) ) ||
118- 'NA' } { ' ' }
119- to{ ' ' }
120- { formatDateString ( getMetadataValue ( data , 'Period To' ) ) ||
121- 'NA' }
122- </ Text >
112+
123113 </ span >
124114 </ div >
125115
You can’t perform that action at this time.
0 commit comments