From d684abbdef8f719d0fae961277866c08a4ea636c Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 20 Jun 2026 17:05:55 -0400 Subject: [PATCH] refactor(settings): drop trim field, now set from preview panel --- src/components/Settings.tsx | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index b0e2a99..6900d19 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -1,15 +1,7 @@ import type { ReactNode } from "react"; import { useBook } from "../store/useBook"; -import type { TrimSize } from "../model/book"; import { Icon } from "./Icon"; -const TRIMS: { value: TrimSize; label: string }[] = [ - { value: "6x9", label: "6 × 9 in — trade paperback" }, - { value: "5.5x8.5", label: "5.5 × 8.5 in — digest" }, - { value: "5x8", label: "5 × 8 in — pocket" }, - { value: "a5", label: "A5 — 148 × 210 mm" }, -]; - const LANGUAGES = [ { value: "en", label: "English" }, { value: "es", label: "Spanish" }, @@ -58,26 +50,15 @@ export function Settings({ onClose, onSave }: { onClose: () => void; onSave: () setMetadata({ isbn: e.target.value })} /> -
- - - - - - -
+ + +