Skip to content

Commit

Permalink
remove LineLemmasContext
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Jul 31, 2024
1 parent 0da6c50 commit 8747a5f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/transliteration/ui/line-tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,8 @@ export function AnnotationLineColumns({
isInPopover: true,
})

const [lemmaMap, lemmaSetter] = useState<LemmaMap>(
createLemmaMap(lineAccumulator.lemmas)
)

return (
<LineLemmasContext.Provider
value={{
lemmaMap: lemmaMap,
lemmaSetter: lemmaSetter,
}}
>
<>
{lineAccumulator.columns.map((column: ColumnData, index: number) => (
<td key={index} colSpan={column.span ?? maxColumns}>
{column.content.map((tokenComponent, index) => (
Expand All @@ -119,7 +110,7 @@ export function AnnotationLineColumns({
))}
</td>
))}
</LineLemmasContext.Provider>
</>
)
}

Expand Down

0 comments on commit 8747a5f

Please sign in to comment.