Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Jul 31, 2024
1 parent bc4b331 commit 0f8b04c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fragmentarium/ui/fragment/TokenAnnotationTool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ type Props = {
onSave(fragment: Fragment): void
}

export default class TokenAnnotationTool extends Component<Props, any> {
export default class TokenAnnotationTool extends Component<Props> {
readonly fragment: Fragment

constructor(props: Props) {
super(props)
this.fragment = props.fragment
}

markableLine({
displayMarkableLine({
line,
numberOfColumns,
}: {
Expand Down Expand Up @@ -48,7 +49,7 @@ export default class TokenAnnotationTool extends Component<Props, any> {
{text.allLines.map((line: AbstractLine, index) => {
if (isTextLine(line)) {
return (
<this.markableLine
<this.displayMarkableLine
key={index}
line={line}
numberOfColumns={text.numberOfColumns}
Expand Down

0 comments on commit 0f8b04c

Please sign in to comment.