mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fixed confusing naming of letterOption
This commit is contained in:
@@ -15,7 +15,7 @@ interface IProps extends IDocProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function LetterOptions(props: IProps) {
|
export default function LetterOptions(props: IProps) {
|
||||||
const templateTypeOptions = [
|
const letterOptionTypes = [
|
||||||
{
|
{
|
||||||
value: 'brief-fam',
|
value: 'brief-fam',
|
||||||
name: 'Familie',
|
name: 'Familie',
|
||||||
@@ -38,11 +38,11 @@ export default function LetterOptions(props: IProps) {
|
|||||||
<div className="grid grid-cols-6 gap-6 px-4 py-5 bg-white sm:p-6">
|
<div className="grid grid-cols-6 gap-6 px-4 py-5 bg-white sm:p-6">
|
||||||
<div className="col-span-3">
|
<div className="col-span-3">
|
||||||
<Select
|
<Select
|
||||||
name="template"
|
name="letterOption"
|
||||||
text="Vorlage"
|
text="Vorlage"
|
||||||
onchange={props.onChange}
|
onchange={props.onChange}
|
||||||
value={props.template}
|
value={props.letterOption}
|
||||||
options={templateTypeOptions}
|
options={letterOptionTypes}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-span-3">
|
<div className="col-span-3">
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export interface IDocProps {
|
|||||||
signature: string
|
signature: string
|
||||||
specialMail: string
|
specialMail: string
|
||||||
subject: string
|
subject: string
|
||||||
template: string
|
letterOption: string
|
||||||
yourMail: string
|
yourMail: string
|
||||||
yourRef: string
|
yourRef: string
|
||||||
yourRefName: string
|
yourRefName: string
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ function convertLineBreaks(lines: string) {
|
|||||||
|
|
||||||
export function brief(options: IDocProps) {
|
export function brief(options: IDocProps) {
|
||||||
const {
|
const {
|
||||||
template,
|
letterOption,
|
||||||
subject,
|
subject,
|
||||||
yourRef,
|
yourRef,
|
||||||
yourRefName,
|
yourRefName,
|
||||||
@@ -27,7 +27,7 @@ export function brief(options: IDocProps) {
|
|||||||
|
|
||||||
return `% brief document
|
return `% brief document
|
||||||
\\documentclass{scrlttr2}
|
\\documentclass{scrlttr2}
|
||||||
\\LoadLetterOption{${template}}
|
\\LoadLetterOption{${letterOption}}
|
||||||
|
|
||||||
\\setkomavar{subject}{${subject}}
|
\\setkomavar{subject}{${subject}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user