@@ -8,22 +8,22 @@ import { Tweet, TweetSkeleton, type TwitterComponents } from "react-tweet";
8
8
9
9
const YOUTUBE_VIDEOS = [
10
10
{
11
- id : "VIDEO_001" ,
11
+ embedId : "azhw_iq8SIA" ,
12
+ title : "This CLI Lets You Choose Your Entire Tech Stack Instantly" ,
13
+ } ,
14
+ {
12
15
embedId : "CWwkWJmT_zU" ,
13
16
title : "The BEST Way To Start a Project (Better-T-Stack)" ,
14
17
} ,
15
18
{
16
- id : "VIDEO_002" ,
17
19
embedId : "MGmPTcgJYIo" ,
18
20
title : "This new CLI tool makes scaffolding projects easy" ,
19
21
} ,
20
22
{
21
- id : "VIDEO_003" ,
22
23
embedId : "g-ynSAdL6Ak" ,
23
24
title : "This tool cured my JavaScript fatigue" ,
24
25
} ,
25
26
{
26
- id : "VIDEO_004" ,
27
27
embedId : "uHUgw-Hi8HE" ,
28
28
title : "I tried React again after 2 years of Svelte" ,
29
29
} ,
@@ -164,7 +164,9 @@ export default function Testimonials() {
164
164
< div className = "sticky top-0 z-10 border-border border-b px-2 py-2" >
165
165
< div className = "flex items-center gap-2" >
166
166
< Play className = "h-3 w-3 text-primary" />
167
- < span className = "font-semibold text-xs" > [{ video . id } ]</ span >
167
+ < span className = "font-semibold text-xs" >
168
+ [VIDEO_{ String ( index + 1 ) . padStart ( 3 , "0" ) } ]
169
+ </ span >
168
170
</ div >
169
171
</ div >
170
172
< div className = "w-full min-w-0 overflow-hidden" >
@@ -243,7 +245,11 @@ export default function Testimonials() {
243
245
animate = "visible"
244
246
>
245
247
{ YOUTUBE_VIDEOS . map ( ( video , index ) => (
246
- < VideoCard key = { video . id } video = { video } index = { index } />
248
+ < VideoCard
249
+ key = { `video-${ video . embedId } ` }
250
+ video = { video }
251
+ index = { index }
252
+ />
247
253
) ) }
248
254
</ motion . div >
249
255
</ div >
@@ -256,7 +262,11 @@ export default function Testimonials() {
256
262
animate = "visible"
257
263
>
258
264
{ YOUTUBE_VIDEOS . map ( ( video , index ) => (
259
- < VideoCard key = { video . id } video = { video } index = { index } />
265
+ < VideoCard
266
+ key = { `video-${ video . embedId } ` }
267
+ video = { video }
268
+ index = { index }
269
+ />
260
270
) ) }
261
271
</ motion . div >
262
272
</ div >
0 commit comments