refactor: small tweaks and fixes

This commit is contained in:
Carlos Valente
2024-03-06 22:42:20 +01:00
committed by GitHub
parent 8196ea584d
commit d22cc48565
61 changed files with 401 additions and 198 deletions
@@ -40,7 +40,7 @@ interface EventBlockProps {
previousEnd: MaybeNumber;
colour: string;
isPast: boolean;
next: boolean;
isNext: boolean;
skip: boolean;
loaded: boolean;
hasCursor: boolean;
@@ -76,7 +76,7 @@ export default function EventBlock(props: EventBlockProps) {
previousEnd,
colour,
isPast,
next,
isNext,
skip = false,
loaded,
hasCursor,
@@ -240,7 +240,7 @@ export default function EventBlock(props: EventBlockProps) {
className={blockClasses}
ref={setNodeRef}
style={dragStyle}
onMouseDown={handleFocusClick}
onClick={handleFocusClick}
onContextMenu={onContextMenu}
id='event-block'
>
@@ -268,7 +268,7 @@ export default function EventBlock(props: EventBlockProps) {
title={title}
note={note}
delay={delay}
next={next}
isNext={isNext}
skip={skip}
loaded={loaded}
playback={playback}