Skip to content

Commit 5351c60

Browse files
committed
fix: resolve lint errors and fallback to any for HammerInput type
1 parent 326957c commit 5351c60

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/VideoPlayer2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
111111
};
112112

113113
const setupZoomFeatures = (player: any) => {
114-
115114
if (typeof window === 'undefined' || typeof document === 'undefined') return;
116115

117116
const videoEl = player.el().querySelector('video');
@@ -166,7 +165,8 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
166165
})();
167166

168167
// Unified gesture handler
169-
const handleGestureControl = (e: HammerInput) => {
168+
// @ts-expect-error: HammerInput type not exported in hammerjs; fallback to any for now
169+
const handleGestureControl = (e: any) => {
170170
const target = e.srcEvent.target as HTMLElement;
171171
const isControlBar = target.closest('.vjs-control-bar');
172172

src/components/posts/form/form-vote.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const VoteForm: React.FC<IVoteFormProps> = ({
5454
);
5555
};
5656

57-
5857
const userVoted = Boolean(votesArr.length);
5958
const userVoteVal = votesArr[0];
6059

0 commit comments

Comments
 (0)