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 ( - <> -
+ ); }; + +export default CartForm; \ No newline at end of file diff --git a/src/routes/index.lazy.tsx b/src/routes/index.lazy.tsx index fe16f14..216a3d9 100644 --- a/src/routes/index.lazy.tsx +++ b/src/routes/index.lazy.tsx @@ -9,23 +9,21 @@ export const Route = createLazyFileRoute("/")({ function Index() { return ( -Enter the cards you want to bling out, and we'll show you
+all of the most expensive printings available for each card, as well as
+the total cost.
+