refactor: extract edit element in table

This commit is contained in:
Carlos Valente
2024-12-20 12:39:49 +01:00
committed by Carlos Valente
parent 2fc4e6da16
commit c445c42f8a
4 changed files with 28 additions and 26 deletions
@@ -23,8 +23,8 @@ export default function CuesheetHeader(props: CuesheetHeaderProps) {
return (
<tr key={headerGroup.id}>
<th className={style.indexColumn}>{showIndexColumn && '#'}</th>
<th className={style.actionColumn} />
<th className={style.indexColumn}>{showIndexColumn && '#'}</th>
<SortableContext key={key} items={headerGroup.headers} strategy={horizontalListSortingStrategy}>
{headerGroup.headers.map((header) => {
const width = header.getSize();