File tree Expand file tree Collapse file tree 4 files changed +70
-1
lines changed
Expand file tree Collapse file tree 4 files changed +70
-1
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,24 @@ export function StatisticalUnitTableHeader({
151151 Address
152152 </ TableHead >
153153 ) ;
154+ case "birth_date" :
155+ return (
156+ < TableHead
157+ className = "text-left hidden lg:table-cell"
158+ key = { `h-cell-${ headerCellSuffix ( column ) } ` }
159+ >
160+ Birth Date
161+ </ TableHead >
162+ ) ;
163+ case "death_date" :
164+ return (
165+ < TableHead
166+ className = "text-left hidden lg:table-cell"
167+ key = { `h-cell-${ headerCellSuffix ( column ) } ` }
168+ >
169+ Death Date
170+ </ TableHead >
171+ ) ;
154172 case "data_sources" :
155173 return (
156174 < TableHead
Original file line number Diff line number Diff line change @@ -337,6 +337,39 @@ export const StatisticalUnitTableRow = ({
337337 </ div >
338338 </ TableCell >
339339 ) ;
340+
341+ case "birth_date" :
342+ return (
343+ < TableCell
344+ key = { `cell-${ bodyCellSuffix ( unit , column ) } ` }
345+ className = { getCellClassName ( column ) }
346+ >
347+ < div
348+ title = { unit . birth_date ?? "" }
349+ className = "flex flex-col space-y-0.5 leading-tight"
350+ >
351+ < small className = "text-gray-700 whitespace-nowrap" >
352+ { unit . birth_date }
353+ </ small >
354+ </ div >
355+ </ TableCell >
356+ ) ;
357+ case "death_date" :
358+ return (
359+ < TableCell
360+ key = { `cell-${ bodyCellSuffix ( unit , column ) } ` }
361+ className = { getCellClassName ( column ) }
362+ >
363+ < div
364+ title = { unit . death_date ?? "" }
365+ className = "flex flex-col space-y-0.5 leading-tight"
366+ >
367+ < small className = "text-gray-700 whitespace-nowrap" >
368+ { unit . death_date }
369+ </ small >
370+ </ div >
371+ </ TableCell >
372+ ) ;
340373 case 'data_sources' :
341374 return (
342375 < TableCell key = { `cell-${ bodyCellSuffix ( unit , column ) } ` } className = { getCellClassName ( column ) } >
Original file line number Diff line number Diff line change @@ -81,7 +81,9 @@ export type TableColumnCode =
8181 | "sector"
8282 | "legal_form"
8383 | "data_sources"
84- | "physical_address" ;
84+ | "physical_address"
85+ | "birth_date"
86+ | "death_date" ;
8587
8688// Extend the base interface based on visibility type
8789export interface AdaptableTableColumn {
Original file line number Diff line number Diff line change @@ -139,6 +139,22 @@ export function TableColumnsProvider({ children }: { children: ReactNode }) {
139139 stat_code : null ,
140140 profiles : [ "All" ] ,
141141 } ,
142+ {
143+ type : "Adaptable" ,
144+ code : "birth_date" ,
145+ label : "Birth Date" ,
146+ visible : false ,
147+ stat_code : null ,
148+ profiles : [ "All" ] ,
149+ } ,
150+ {
151+ type : "Adaptable" ,
152+ code : "death_date" ,
153+ label : "Death Date" ,
154+ visible : false ,
155+ stat_code : null ,
156+ profiles : [ "All" ] ,
157+ } ,
142158 {
143159 type : "Adaptable" ,
144160 code : "data_sources" ,
You can’t perform that action at this time.
0 commit comments