refactor(cards): messing with the time in the cards

This commit is contained in:
2025-04-17 18:41:40 -05:00
parent 9cb8ca6813
commit 5cdca0a41f
9 changed files with 388 additions and 8 deletions

View File

@@ -25,6 +25,9 @@ export default function INVCheckCard(props: any) {
laneData = laneData.filter(
(l: any) => l.rowType === props.type.toUpperCase()
);
// age
laneData = laneData.filter((l: any) => l.DaysSinceLast >= props.age);
}
// const handleCloseCard = () => {

View File

@@ -0,0 +1,33 @@
//import { LstCard } from "@/components/extendedUI/LstCard";
import { getOpenOrders } from "@/utils/querys/logistics/getOpenOrders";
import { openOrderColumns } from "@/utils/tableData/openorders/ooColumns";
import { OpenOrderTable } from "@/utils/tableData/openorders/ooData";
import { useQuery } from "@tanstack/react-query";
//import { CircleX } from "lucide-react";
//import { Suspense } from "react";
//import { toast } from "sonner";
export default function OpenOrders() {
//{ style = {} }
const { data, isError, isLoading } = useQuery(getOpenOrders());
if (isLoading) return <div>Loading openOrder data...</div>;
if (isError) {
return (
<div>
<p>There was an error getting the openorders.</p>
</div>
);
}
let openOrders: any = data;
// const handleCloseCard = () => {
// //removeCard("PPOO");
// toast.success("card removed");
// };
return <OpenOrderTable columns={openOrderColumns} data={openOrders} />;
}