Skip to content

Commit 79886e7

Browse files
HarkiratHarkirat
authored andcommitted
fix build
1 parent 8c3bfef commit 79886e7

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/components/FolderView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const FolderView = ({
4747
return (
4848
<div className="mt-56 flex">
4949
<div className="m-auto text-center text-gray-500 text-xl">
50-
{filterMessages[currentfilter] || "No content found."}
50+
{filterMessages[currentfilter as keyof typeof filterMessages] || "No content found."}
5151
</div>
5252
</div>
5353
);

src/components/VideoPlayer2.tsx

Lines changed: 1 addition & 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,7 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
166165
})();
167166

168167
// Unified gesture handler
169-
const handleGestureControl = (e: HammerInput) => {
168+
const handleGestureControl = (e: any) => {
170169
const target = e.srcEvent.target as HTMLElement;
171170
const isControlBar = target.closest('.vjs-control-bar');
172171

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { ArrowBigDown, ArrowBigUp } from 'lucide-react';
99
import { voteHandlerAction } from '@/actions/commentVote';
1010
import { VoteType } from '@prisma/client';
1111
import { usePathname } from 'next/navigation';
12-
1312
interface IVoteFormProps {
1413
questionId: number | undefined;
1514
answerId: number | undefined;
@@ -53,7 +52,6 @@ const VoteForm: React.FC<IVoteFormProps> = ({
5352
}
5453
);
5554
};
56-
5755

5856
const userVoted = Boolean(votesArr.length);
5957
const userVoteVal = votesArr[0];

src/utiles/appx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { refreshDbInternal } from '@/actions/refresh-db';
1313

1414
const LOCAL_CMS_PROVIDER = process.env.LOCAL_CMS_PROVIDER;
1515
const COHORT_3_PARENT_COURSES = [8, 9, 10, 11, 12];
16-
const COHORT_4_PARENT_COURSES = [25, 26, 27, 28]
16+
const COHORT_4_PARENT_COURSES = [25, 26, 27, 28];
1717
// 8 -> Web + Devops + Web3
1818
// 9 -> Web + Devops
1919
// 10 -> Web3

0 commit comments

Comments
 (0)