summaryrefslogtreecommitdiff
path: root/apps/web/src
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-02-01 10:03:51 +0100
committerMaze Winther <mazewinther@gmail.com>2026-02-01 10:03:51 +0100
commit1d55b903d767656ea067ce028289ca6c99389706 (patch)
tree2e0dea68bd7c89f9f2264da5c4b893c2303acd2a /apps/web/src
parentaf047ba4a7d14c640380ab4becd1c2b14892b9ed (diff)
downloadopencut-1d55b903d767656ea067ce028289ca6c99389706.tar.gz
fix remaining errors
Diffstat (limited to 'apps/web/src')
-rw-r--r--apps/web/src/hooks/timeline/use-scroll-sync.ts8
-rw-r--r--apps/web/src/hooks/timeline/use-selection-box.ts4
-rw-r--r--apps/web/src/hooks/timeline/use-snap-indicator-position.ts6
-rw-r--r--apps/web/src/hooks/timeline/use-timeline-seek.ts8
4 files changed, 13 insertions, 13 deletions
diff --git a/apps/web/src/hooks/timeline/use-scroll-sync.ts b/apps/web/src/hooks/timeline/use-scroll-sync.ts
index cdd915b0..61465a3d 100644
--- a/apps/web/src/hooks/timeline/use-scroll-sync.ts
+++ b/apps/web/src/hooks/timeline/use-scroll-sync.ts
@@ -1,10 +1,10 @@
import { useEffect, useRef } from "react";
interface UseScrollSyncProps {
- rulerScrollRef?: React.RefObject<HTMLDivElement>;
- tracksScrollRef: React.RefObject<HTMLDivElement>;
- trackLabelsScrollRef?: React.RefObject<HTMLDivElement>;
- bookmarksScrollRef?: React.RefObject<HTMLDivElement>;
+ rulerScrollRef?: React.RefObject<HTMLDivElement | null>;
+ tracksScrollRef: React.RefObject<HTMLDivElement | null>;
+ trackLabelsScrollRef?: React.RefObject<HTMLDivElement | null>;
+ bookmarksScrollRef?: React.RefObject<HTMLDivElement | null>;
}
export function useScrollSync({
diff --git a/apps/web/src/hooks/timeline/use-selection-box.ts b/apps/web/src/hooks/timeline/use-selection-box.ts
index 702abad9..12c6bf8a 100644
--- a/apps/web/src/hooks/timeline/use-selection-box.ts
+++ b/apps/web/src/hooks/timeline/use-selection-box.ts
@@ -4,12 +4,12 @@ import { getCumulativeHeightBefore, getTrackHeight } from "@/lib/timeline";
import { useEditor } from "../use-editor";
interface UseSelectionBoxProps {
- containerRef: React.RefObject<HTMLElement>;
+ containerRef: React.RefObject<HTMLElement | null>;
onSelectionComplete: (
elements: { trackId: string; elementId: string }[],
) => void;
isEnabled?: boolean;
- tracksScrollRef: React.RefObject<HTMLDivElement>;
+ tracksScrollRef: React.RefObject<HTMLDivElement | null>;
zoomLevel: number;
}
diff --git a/apps/web/src/hooks/timeline/use-snap-indicator-position.ts b/apps/web/src/hooks/timeline/use-snap-indicator-position.ts
index c6ecbf7c..d78eb04d 100644
--- a/apps/web/src/hooks/timeline/use-snap-indicator-position.ts
+++ b/apps/web/src/hooks/timeline/use-snap-indicator-position.ts
@@ -6,9 +6,9 @@ interface UseSnapIndicatorPositionParams {
snapPoint: { time: number } | null;
zoomLevel: number;
tracks: TimelineTrack[];
- timelineRef: React.RefObject<HTMLDivElement>;
- trackLabelsRef?: React.RefObject<HTMLDivElement>;
- tracksScrollRef: React.RefObject<HTMLDivElement>;
+ timelineRef: React.RefObject<HTMLDivElement | null>;
+ trackLabelsRef?: React.RefObject<HTMLDivElement | null>;
+ tracksScrollRef: React.RefObject<HTMLDivElement | null>;
}
interface SnapIndicatorPosition {
diff --git a/apps/web/src/hooks/timeline/use-timeline-seek.ts b/apps/web/src/hooks/timeline/use-timeline-seek.ts
index f5dc6ddb..127ebcbb 100644
--- a/apps/web/src/hooks/timeline/use-timeline-seek.ts
+++ b/apps/web/src/hooks/timeline/use-timeline-seek.ts
@@ -5,10 +5,10 @@ import { getSnappedSeekTime } from "@/lib/time";
import { useEditor } from "../use-editor";
interface UseTimelineSeekProps {
- playheadRef: RefObject<HTMLDivElement>;
- trackLabelsRef: RefObject<HTMLDivElement>;
- rulerScrollRef: RefObject<HTMLDivElement>;
- tracksScrollRef: RefObject<HTMLDivElement>;
+ playheadRef: RefObject<HTMLDivElement | null>;
+ trackLabelsRef: RefObject<HTMLDivElement | null>;
+ rulerScrollRef: RefObject<HTMLDivElement | null>;
+ tracksScrollRef: RefObject<HTMLDivElement | null>;
zoomLevel: number;
duration: number;
isSelecting: boolean;