File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
apps/web/src/app/(home)/_components Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -49,19 +49,23 @@ const TWEET_IDS = [
49
49
"1949912886958301546" ,
50
50
"1942558041704182158" ,
51
51
"1947636576118304881" ,
52
+ "1951704580691304693" ,
52
53
"1937383786637094958" ,
53
54
"1931709370003583004" ,
54
55
"1929147326955704662" ,
55
56
"1948050877454938549" ,
57
+ "1951599045383770386" ,
56
58
"1904228496144269699" ,
57
59
"1949851365435469889" ,
60
+ "1950457707632214136" ,
58
61
"1930257410259616057" ,
59
62
"1937258706279817570" ,
60
63
"1917815700980391964" ,
61
64
"1949921211586400419" ,
62
65
"1947812547551498466" ,
63
66
"1928317790588403953" ,
64
67
"1917640304758514093" ,
68
+ "1951703990896570459" ,
65
69
"1907831059275735353" ,
66
70
"1912924558522524039" ,
67
71
"1945054982870282575" ,
@@ -70,6 +74,7 @@ const TWEET_IDS = [
70
74
"1911490975173607495" ,
71
75
"1930104047845158972" ,
72
76
"1913773945523953713" ,
77
+ "1951540684340469950" ,
73
78
"1944937093387706572" ,
74
79
"1904241046898556970" ,
75
80
"1913834145471672652" ,
@@ -109,8 +114,24 @@ const TWEET_IDS = [
109
114
] ;
110
115
111
116
export const components : TwitterComponents = {
112
- AvatarImg : ( props ) => < Image { ...props } alt = { props . alt } unoptimized /> ,
113
- MediaImg : ( props ) => < Image { ...props } alt = { props . alt } fill unoptimized /> ,
117
+ AvatarImg : ( props ) => {
118
+ if ( ! props . src || props . src === "" ) {
119
+ return (
120
+ < div className = "flex h-10 w-10 items-center justify-center rounded-full bg-muted" />
121
+ ) ;
122
+ }
123
+ return < Image { ...props } alt = { props . alt || "User avatar" } unoptimized /> ;
124
+ } ,
125
+ MediaImg : ( props ) => {
126
+ if ( ! props . src || props . src === "" ) {
127
+ return (
128
+ < div className = "flex h-32 w-full items-center justify-center rounded bg-muted" />
129
+ ) ;
130
+ }
131
+ return (
132
+ < Image { ...props } alt = { props . alt || "Media content" } fill unoptimized />
133
+ ) ;
134
+ } ,
114
135
} ;
115
136
116
137
export default function Testimonials ( ) {
You can’t perform that action at this time.
0 commit comments