mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
* refactor: fix table header sort button focus styles * refactor: extract FeatureNameCell component * refactor: port health reports to react-table * refactor: hide columns on small screens * refactor: sort features by name
19 lines
570 B
TypeScript
19 lines
570 B
TypeScript
import { VFC } from 'react';
|
|
import { DateCell } from 'component/common/Table/cells/DateCell/DateCell';
|
|
import { IReportTableRow } from 'component/Reporting/ReportTable/ReportTable';
|
|
import { TextCell } from 'component/common/Table/cells/TextCell/TextCell';
|
|
|
|
interface IReportExpiredCellProps {
|
|
row: {
|
|
original: IReportTableRow;
|
|
};
|
|
}
|
|
|
|
export const ReportExpiredCell: VFC<IReportExpiredCellProps> = ({ row }) => {
|
|
if (row.original.expiredAt) {
|
|
return <DateCell value={row.original.expiredAt} />;
|
|
}
|
|
|
|
return <TextCell>N/A</TextCell>;
|
|
};
|