diff --git a/src/components/Settings/Overlay.tsx b/src/components/Settings/Overlay.tsx index dc783a1..1a7704d 100644 --- a/src/components/Settings/Overlay.tsx +++ b/src/components/Settings/Overlay.tsx @@ -44,6 +44,7 @@ import { printTypeTitles, PRINT_TYPE_CONFIRMATION, PRINT_TYPE_INVOICE, + PRINT_TYPE_LETTER, PRINT_TYPE_OFFER, StoreContext, storeSchema, @@ -987,6 +988,7 @@ const SettingsOverlay: Component = () => { + + + + + {pageTitle()} + + + + + + diff --git a/src/stores.ts b/src/stores.ts index 2800819..0677989 100644 --- a/src/stores.ts +++ b/src/stores.ts @@ -25,16 +25,19 @@ export const positionSchema = z.object({ export type Position = Infer; +export const PRINT_TYPE_LETTER = "LETTER"; export const PRINT_TYPE_OFFER = "OFFER"; export const PRINT_TYPE_CONFIRMATION = "CONFIRMATION"; export const PRINT_TYPE_INVOICE = "INVOICE"; export type PrintType = + | typeof PRINT_TYPE_LETTER | typeof PRINT_TYPE_OFFER | typeof PRINT_TYPE_CONFIRMATION | typeof PRINT_TYPE_INVOICE; export const printTypeTitles = { + [PRINT_TYPE_LETTER]: "Brief", [PRINT_TYPE_OFFER]: "Offerte", [PRINT_TYPE_CONFIRMATION]: "Auftragsbestätigung", [PRINT_TYPE_INVOICE]: "Rechnung",