Skip to content

Commit

Permalink
use showMeter class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Jul 31, 2024
1 parent 8c82e03 commit bd63189
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/transliteration/ui/LineAccumulator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export class LineAccumulator {
pushToken(
token: Token,
index: number,
showMeter = false,
showIpa = false,
phoneticProps?: PhoneticProps,
bemModifiers: string[] = []
Expand All @@ -116,7 +115,7 @@ export class LineAccumulator {
token={token}
bemModifiers={[...this.bemModifiers, ...bemModifiers]}
Wrapper={this.inGloss && !isEnclosure(token) ? GlossWrapper : undefined}
showMeter={showMeter}
showMeter={this.showMeter}
showIpa={showIpa}
phoneticProps={phoneticProps}
/>
Expand Down Expand Up @@ -162,14 +161,7 @@ export class LineAccumulator {
case 'Column':
throw new Error('Unexpected column token.')
default:
this.pushToken(
token,
index,
this.showMeter,
showIpa,
phoneticProps,
bemModifiers
)
this.pushToken(token, index, showIpa, phoneticProps, bemModifiers)
this.pushLemma(token.uniqueLemma)
this.isFirstWord = false
}
Expand Down

0 comments on commit bd63189

Please sign in to comment.