diff --git a/src/components/Consents/Consents.tsx b/src/components/Consents/Consents.tsx index 2bcd007048a11926af2a37375e377bf6d0e36045..6be71da50853369ad746658747a934f9f1bdb21e 100644 --- a/src/components/Consents/Consents.tsx +++ b/src/components/Consents/Consents.tsx @@ -299,6 +299,9 @@ const Consents: React.FC = () => { rowMultiSelectWithClick={true} pagination={false} suppressCellFocus={true} + rowClassRules={{ + expired: (params) => params.data.endDate < DateTime.now(), + }} ></AgGridReact> {!isShowingSelection && ( <TablePagination diff --git a/src/components/Consents/agGridOverrides.scss b/src/components/Consents/agGridOverrides.scss index 94e9eae67cfdd11944446525935208e4a44e4646..b4964697a34c98f051138992eb8b058cceb62d3c 100644 --- a/src/components/Consents/agGridOverrides.scss +++ b/src/components/Consents/agGridOverrides.scss @@ -10,10 +10,14 @@ .ag-header-cell-text { color: $gold; } -.ag-row-odd, -.ag-row-even { +.ag-row { background: transparent !important; transition: all 300ms ease !important; + &.expired { + * { + color: $text-chart; + } + } } .ag-cell-focus { outline: none !important;