diff --git a/src/components/CartForm.tsx b/src/components/CartForm.tsx index 931dcb0..335738d 100644 --- a/src/components/CartForm.tsx +++ b/src/components/CartForm.tsx @@ -1,7 +1,6 @@ import { z } from "zod"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; - import { Button } from "@/components/ui/button"; import { Form, @@ -19,8 +18,6 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; - -import currency from "@/assets/currency.json"; import { Checkbox } from "./ui/checkbox"; import { useLocalStorage } from "@/hooks/localStorage"; import { @@ -30,9 +27,9 @@ import { AllTreatments, } from "@/types"; import { useNavigate } from "@tanstack/react-router"; +import currency from "@/assets/currency.json"; -const decklistRegex = - /^(\d+\s+.+?(?:\s+\([A-Z0-9]+\)\s+\d+)?(?:\s+\[[A-Z0-9]+\])?\s*\n?)+$/; +const decklistRegex = /^(\d+\s+.+?(?:\s+\([A-Z0-9]+\)\s+\d+)?(?:\s+\[[A-Z0-9]+\])?\s*\n?)+$/; const formSchema = z.object({ decklist: z @@ -91,126 +88,119 @@ export const CartForm: React.FC = () => { } return ( - <> -
- -
- ( - -
- Decklist -

100 ? "text-red-500" : "text-muted-foreground"}`} - > - ({numCards} - /100 cards) -

-
+ + +
+ ( + +
+ Decklist +

100 ? "text-red-500" : "text-muted-foreground" + }`} + > + ({numCards}/100 cards) +

+
+ +