refactor: simple migrations and tweaks to cuesheet

This commit is contained in:
Carlos Valente
2025-06-27 22:14:45 +02:00
committed by Carlos Valente
parent c8c2a05724
commit aefa4cbf44
23 changed files with 200 additions and 141 deletions
@@ -10,8 +10,7 @@ interface CuesheetTableMenuProps {
export default memo(CuesheetTableMenu);
function CuesheetTableMenu(props: CuesheetTableMenuProps) {
const { showModal } = props;
function CuesheetTableMenu({ showModal }: CuesheetTableMenuProps) {
const { isOpen, eventId, entryIndex, position, closeMenu } = useCuesheetTableMenu();
return (
@@ -11,8 +11,7 @@ interface CuesheetTableMenuActionsProps {
showModal: (entryId: string) => void;
}
export default function CuesheetTableMenuActions(props: CuesheetTableMenuActionsProps) {
const { eventId, entryIndex, showModal } = props;
export default function CuesheetTableMenuActions({ eventId, entryIndex, showModal }: CuesheetTableMenuActionsProps) {
const { addEntry, getEntryById, move, deleteEntry } = useEntryActions();
const handleCloneEvent = () => {