Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { TransactionTableRow } from "@components/ManageMoney/TransactionTable/transactions.types";
import { AlertDot } from "@components/ManageMoney/TransactionTable/TransactionTable.atoms";
import { Box } from "@mui/material";
import { useAppSelector } from "@redux/hooks";
import { selectQueryFilters } from "@redux/slices/transactions";
export const AlertComp = ({ row }: { row: TransactionTableRow }) => {
const queryFilters = useAppSelector(selectQueryFilters);
if (
queryFilters.blocked.includes("isBlocked:true") &&
row.firstCheckedAt === null
)
return (
<Box>
<AlertDot component={undefined} data-testid="unchecked-row-alert" />
</Box>
);
else return null;
};
|