refactor: use a single menu for table

This commit is contained in:
Carlos Valente
2025-02-17 19:37:33 +01:00
committed by Carlos Valente
parent 86bb739d90
commit 84a5b4fe5b
5 changed files with 140 additions and 73 deletions
@@ -22,6 +22,7 @@ import BlockRow from './cuesheet-table-elements/BlockRow';
import CuesheetHeader from './cuesheet-table-elements/CuesheetHeader';
import DelayRow from './cuesheet-table-elements/DelayRow';
import EventRow from './cuesheet-table-elements/EventRow';
import CuesheetTableMenu from './cuesheet-table-menu/CuesheetTableMenu';
import CuesheetTableSettings from './cuesheet-table-settings/CuesheetTableSettings';
import useColumnManager from './useColumnManager';
@@ -172,7 +173,6 @@ export default function CuesheetTable(props: CuesheetTableProps) {
selectedRef={isSelected ? selectedRef : undefined}
skip={entry.skip}
colour={entry.colour}
showModal={showModal}
>
{row.getVisibleCells().map((cell) => {
return (
@@ -191,6 +191,7 @@ export default function CuesheetTable(props: CuesheetTableProps) {
</tbody>
</table>
</div>
<CuesheetTableMenu showModal={showModal} />
</>
);
}