@@ -79,7 +79,7 @@ export function PlanEditor({ draft, onChange }: Props) {
}
}}
/>
-
diff --git a/src/ui/components/PurchaseDialog.tsx b/src/ui/components/PurchaseDialog.tsx
index dd47c43..d924217 100644
--- a/src/ui/components/PurchaseDialog.tsx
+++ b/src/ui/components/PurchaseDialog.tsx
@@ -9,7 +9,9 @@ import {
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
+import { NativeSelect } from "@/components/ui/native-select";
import { Label } from "@/components/ui/label";
+import { Segmented } from "./Segmented.tsx";
import { SplitEditor } from "./SplitEditor.tsx";
import { PlanEditor } from "./PlanEditor.tsx";
import { BulkLines } from "./BulkLines.tsx";
@@ -108,19 +110,15 @@ export function PurchaseDialog({ monthId, purchase, trigger }: Props) {
{!purchase && (
-
- {(["one", "many"] as const).map((option) => (
- setMode(option)}
- >
- {option === "one" ? "One purchase" : "Many lines"}
-
- ))}
-
+
)}
@@ -142,9 +140,7 @@ export function PurchaseDialog({ monthId, purchase, trigger }: Props) {
setBulk((b) => ({ ...b, date }));
}}
/>
-
setBulk((b) => ({
...b,
@@ -153,13 +149,12 @@ export function PurchaseDialog({ monthId, purchase, trigger }: Props) {
}
>
{bulk.date.length > 7 ? "use the month only" : "set exact date"}
-
+
-
+
-
+
@@ -220,24 +214,20 @@ export function PurchaseDialog({ monthId, purchase, trigger }: Props) {
setDraft((d) => ({ ...d, date }));
}}
/>
-