Skip to content

Commit b8f318d

Browse files
authored
Add Start Date column to Partners Table (#1654)
1 parent 84b3de1 commit b8f318d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/components/PartnersDataGrid/PartnerColumns.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '~/api/schema.graphql';
1313
import {
1414
booleanColumn,
15+
dateColumn,
1516
getInitialVisibility,
1617
multiEnumColumn,
1718
QuickFilterButton,
@@ -36,6 +37,13 @@ export const PartnerColumns: Array<GridColDef<Partner>> = [
3637
valueGetter: (_, { organization }) => organization.value?.acronym.value,
3738
width: 100,
3839
},
40+
{
41+
headerName: 'Start Date',
42+
field: 'startDate',
43+
...dateColumn(),
44+
valueGetter: dateColumn.valueGetter((_, { startDate }) => startDate.value),
45+
width: 130,
46+
},
3947
{
4048
field: 'globalInnovationsClient',
4149
headerName: 'GPC',

src/components/PartnersDataGrid/partnerDataGridRow.graphql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ fragment partnerDataGridRow on Partner {
1717
financialReportingTypes {
1818
value
1919
}
20+
startDate {
21+
value
22+
}
2023
...TogglePin
2124
}

0 commit comments

Comments
 (0)