diff --git a/src/resources/destinations.tsx b/src/resources/destinations.tsx
index 8737e46..8790169 100644
--- a/src/resources/destinations.tsx
+++ b/src/resources/destinations.tsx
@@ -27,14 +27,19 @@ import {
useNotify,
useRefresh,
useTranslate,
+ DateFieldProps,
} from "react-admin";
import { DATE_FORMAT } from "../components/date";
+import { get } from "lodash";
const DestinationPagination = () => ;
const destinationRowSx = (record: RaRecord) => ({
- backgroundColor: record.retry_last_ts > 0 ? "#ffcccc" : "white",
+ backgroundColor: record.retry_last_ts > 0 ? "warning.light" : "primary.contrastText",
+ "& .MuiButtonBase-root": {
+ color: "primary.dark",
+ },
});
const destinationFilters = [];
@@ -92,6 +97,14 @@ const DestinationTitle = () => {
);
};
+const RetryDateField = (props: DateFieldProps) => {
+ const record = useRecordContext(props);
+ if (props.source && get(record, props.source) === 0) {
+ return ;
+ }
+ return ;
+};
+
export const DestinationList = (props: ListProps) => {
return (
{
`${id}/show/rooms`} bulkActionButtons={false}>
-
+