File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
app/[locale]/(user)/components Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,11 @@ const Datasets = () => {
102102 {
103103 icon : Icons . calendar ,
104104 label : 'Date' ,
105- value : '19 July 2024' ,
105+ value : new Date ( item . modified ) . toLocaleDateString ( 'en-US' , {
106+ day : 'numeric' ,
107+ month : 'long' ,
108+ year : 'numeric' ,
109+ } ) ,
106110 } ,
107111 {
108112 icon : Icons . download ,
@@ -112,7 +116,9 @@ const Datasets = () => {
112116 {
113117 icon : Icons . globe ,
114118 label : 'Geography' ,
115- value : 'India' ,
119+ value : item . geographies ?. length > 0
120+ ? item . geographies . join ( ', ' )
121+ : 'Not specified' ,
116122 } ,
117123 ] }
118124 tag = { item . tags }
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ const useCasesListDoc: any = graphql(`
4747 logo {
4848 path
4949 }
50+ geographies {
51+ id
52+ name
53+ code
54+ }
5055 metadata {
5156 metadataItem {
5257 id
@@ -150,10 +155,9 @@ const UseCasesListingPage = () => {
150155 {
151156 icon : Icons . globe ,
152157 label : 'Geography' ,
153- value : item . metadata ?. find (
154- ( meta : any ) =>
155- meta . metadataItem ?. label === 'Geography'
156- ) ?. value ,
158+ value : item . geographies ?. length > 0
159+ ? item . geographies . map ( ( geo : any ) => geo . name ) . join ( ', ' )
160+ : 'Not specified' ,
157161 } ,
158162 ] }
159163 footerContent = { [
You can’t perform that action at this time.
0 commit comments