Skip to content

Commit

Permalink
Revert "refactor th components"
Browse files Browse the repository at this point in the history
This reverts commit 6a5eca6.
  • Loading branch information
fsimonjetz committed Mar 12, 2024
1 parent 6a5eca6 commit d32d88d
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/corpus/ui/Chapters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,6 @@ function excludeIndirectJoins(manuscripts: Manuscript[]): Manuscript[] {
)
}

function ColumnTitle({
id,
children,
}: {
id: string
children: ReactNode
}): JSX.Element {
return (
<th id={id} scope="col" className="list-of-manuscripts__column-heading">
{children}
</th>
)
}

const Manuscripts = withData<
{
uncertainFragments: readonly UncertainFragment[]
Expand Down Expand Up @@ -118,12 +104,26 @@ const Manuscripts = withData<
<colgroup span={3}></colgroup>
<thead>
<tr className="list-of-manuscripts__header">
<ColumnTitle id={siglumId}>Siglum</ColumnTitle>
<ColumnTitle id={museumNumberId}>
<th
id={siglumId}
scope="col"
className="list-of-manuscripts__column-heading"
>
Siglum
</th>
<th
id={museumNumberId}
scope="col"
className="list-of-manuscripts__column-heading"
>
Museum Number
<ReferencesHelp className="list-of-manuscripts__help" />
</ColumnTitle>
<ColumnTitle id={extantLinesId}>
</th>
<th
id={extantLinesId}
scope="col"
className="list-of-manuscripts__column-heading"
>
Extant Lines
<span className="list-of-manuscripts__help">
<HelpTrigger
Expand All @@ -137,7 +137,7 @@ const Manuscripts = withData<
}
/>
</span>
</ColumnTitle>
</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit d32d88d

Please sign in to comment.