${recentChanges}` }}
- />
- );
-};
-
-export default Changelog;
diff --git a/lstV2/frontend/src/components/dashboard/AddCards.tsx b/lstV2/frontend/src/components/dashboard/AddCards.tsx
deleted file mode 100644
index fe40ee4..0000000
--- a/lstV2/frontend/src/components/dashboard/AddCards.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { Button } from "@/components/ui/button";
-import {
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
- DialogTrigger,
-} from "@/components/ui/dialog";
-import Cards from "./Cards";
-//import { toast } from "sonner";
-
-export function AddCards() {
- return (
-
- );
-}
diff --git a/lstV2/frontend/src/components/dashboard/Cards.tsx b/lstV2/frontend/src/components/dashboard/Cards.tsx
deleted file mode 100644
index 3f9fe1c..0000000
--- a/lstV2/frontend/src/components/dashboard/Cards.tsx
+++ /dev/null
@@ -1,108 +0,0 @@
-import { useCardStore } from "@/lib/store/useCardStore";
-import { Label } from "../ui/label";
-import { Checkbox } from "../ui/checkbox";
-import { Button } from "../ui/button";
-import { useAppForm } from "@/utils/formStuff";
-
-export default function Cards(card: any) {
- const { addCard, removeCard, cards } = useCardStore();
- let existing: any = cards.filter((n: any) => n.name === card.name);
-
- //console.log(existing);
- const form = useAppForm({
- defaultValues: {
- name: existing[0]?.name || card.name,
- rowType: existing[0]?.type ?? card.rowType,
- age: existing[0]?.age ?? 90,
- active: existing[0]?.active ?? false,
- },
- onSubmit: async ({ value }) => {
- console.log(value);
- const testCard: any = cards.filter(
- (i: any) => i.name === value.name
- );
-
- if (value.active) {
- const newCard = {
- name: `${value.name}`,
- rowType: value.rowType,
- age: value.age ?? 90,
- active: value.active,
- };
- if (testCard.length > 0) {
- removeCard(value.name);
- addCard(newCard);
- return;
- }
- // change the name for a type card
-
- addCard(newCard);
- } else {
- removeCard(value.name);
- }
- },
- });
- return (
-
-
{card.name}
-
- // value.length > 3
- // ? undefined
- // : "Username must be longer than 3 letters",
- // }}
- children={(field) => {
- return (
-
-
-
-
-
-
- field.handleChange(e)
- }
- />
-
- );
- }}
- />
- {!card.inventory && (
- <>
- (
-
- )}
- />
- >
- )}
-
-
-
-
-
- );
-}
diff --git a/lstV2/frontend/src/components/dashboard/DashBoard.tsx b/lstV2/frontend/src/components/dashboard/DashBoard.tsx
deleted file mode 100644
index f4cc2b5..0000000
--- a/lstV2/frontend/src/components/dashboard/DashBoard.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-import { useCardStore } from "@/lib/store/useCardStore";
-import INVCheckCard from "../logistics/warehouse/InventoryCard";
-import PPOO from "../logistics/warehouse/PPOOCard";
-import OpenOrders from "../logistics/warehouse/openOrders";
-
-const componentsMap: any = {
- ppoo: PPOO,
- inv: INVCheckCard,
- openOrder: OpenOrders,
- //QualityRequest,
-};
-
-export default function DashBoard() {
- const { cards } = useCardStore();
-
- //console.log(cards);
- return (
-
- {cards.map((a: any) => {
- const name = a.name; //.filter((c) => c.i === card.i)[0].i || "name";
-
- const Component = componentsMap[name.split("-")[0]];
- if (name === "openOrder") {
- return (
-
-
-
- );
- } else {
- //console.log(name.split("-")[0], a);
- return (
-
-
-
- );
- }
- })}
-
- );
-
- // return (
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- // );
-}
-
-/*
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-*/