fixed confusing naming of letterOption

This commit is contained in:
Thomas Ruoff
2021-03-07 22:24:35 +01:00
parent 193a275c1f
commit a3cc7e0e72
3 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ interface IProps extends IDocProps {
}
export default function LetterOptions(props: IProps) {
const templateTypeOptions = [
const letterOptionTypes = [
{
value: 'brief-fam',
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="col-span-3">
<Select
name="template"
name="letterOption"
text="Vorlage"
onchange={props.onChange}
value={props.template}
options={templateTypeOptions}
value={props.letterOption}
options={letterOptionTypes}
/>
</div>
<div className="col-span-3">

View File

@@ -12,7 +12,7 @@ export interface IDocProps {
signature: string
specialMail: string
subject: string
template: string
letterOption: string
yourMail: string
yourRef: string
yourRefName: string

View File

@@ -6,7 +6,7 @@ function convertLineBreaks(lines: string) {
export function brief(options: IDocProps) {
const {
template,
letterOption,
subject,
yourRef,
yourRefName,
@@ -27,7 +27,7 @@ export function brief(options: IDocProps) {
return `% brief document
\\documentclass{scrlttr2}
\\LoadLetterOption{${template}}
\\LoadLetterOption{${letterOption}}
\\setkomavar{subject}{${subject}}