Skip to content

Commit

Permalink
fix: reset seed and added key to BreadCrumbComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
siinghd committed Apr 16, 2024
1 parent 632acfa commit bf0860f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 51 deletions.
72 changes: 24 additions & 48 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,54 +147,30 @@ async function main() {
data: {
id: 1,
contentId: 3,
// video_1080p_mp4_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_mp4_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_mp4_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_mp4_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_1080p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_mp4_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_mp4_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_mp4_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_mp4_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_720p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_mp4_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_mp4_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_mp4_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_mp4_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
// video_360p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_mp4_1: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_mp4_2: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_mp4_3: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_mp4_4: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_1: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_2: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_3: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_4: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_mp4_1: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_mp4_2: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_mp4_3: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_mp4_4: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_1: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_2: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_3: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_720p_4: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_mp4_1: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_mp4_2: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_mp4_3: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_mp4_4: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_1: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_2: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_3: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_360p_4: 'https://www.youtube.com/watch?v=gYK8azCYjnU',
video_1080p_mp4_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_mp4_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_mp4_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_mp4_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_1080p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_mp4_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_mp4_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_mp4_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_mp4_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_720p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_mp4_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_mp4_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_mp4_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_mp4_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_1: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_2: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_3: 'https://www.w3schools.com/html/mov_bbb.mp4',
video_360p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
slides:
'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/slides/Loops%2C+callbacks.pdf',
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/BreadCrumbComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@/components/ui/breadcrumb';
import { Folder } from '@/db/course';
import Link from 'next/link';
import { useMemo } from 'react';
import { Fragment, useMemo } from 'react';

export default function BreadCrumbComponent({
rest,
Expand Down Expand Up @@ -89,7 +89,7 @@ export default function BreadCrumbComponent({
finalRouteArray = [...rest];
}
return (
<>
<Fragment key={index}>
{index !== array.length - 1 ? (
<>
<BreadcrumbItem>
Expand All @@ -111,7 +111,7 @@ export default function BreadCrumbComponent({
</BreadcrumbPage>
</BreadcrumbItem>
)}
</>
</Fragment>
);
})}
</BreadcrumbList>
Expand Down

0 comments on commit bf0860f

Please sign in to comment.