File tree 1 file changed +9
-23
lines changed
1 file changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,9 @@ import network from '~/images/screenshots/view-network-requests.png'
13
13
import { LandingPageFragment } from '~/lib/basehub-queries'
14
14
15
15
const images = {
16
- testSteps : {
17
- type : 'image' ,
18
- src : testSteps
19
- } ,
20
- console : {
21
- type : 'mux-video' ,
22
- src : '9ERwx5ymPqmmqMeRIhVqCvnhyy009017y00mtdvISQF6fI'
23
- } ,
24
- react : {
25
- type : 'image' ,
26
- src : react
27
- } ,
28
- network : {
29
- type : 'image' ,
30
- src : network
31
- }
16
+ testSteps,
17
+ react,
18
+ network
32
19
}
33
20
34
21
export function DevTools ( { devTools } : LandingPageFragment ) {
@@ -124,15 +111,15 @@ export function DevTools({ devTools }: LandingPageFragment) {
124
111
{ feature . type === 'image' ? (
125
112
< Image
126
113
className = "w-full"
127
- src = { featureImage . src }
114
+ src = { featureImage }
128
115
alt = ""
129
116
priority
130
117
sizes = "(min-width: 1024px) 67.8125rem, (min-width: 640px) 100vw, 45rem"
131
118
/>
132
119
) : (
133
120
< MuxPlayer
134
121
streamType = "on-demand"
135
- playbackId = { featureImage . src as string }
122
+ playbackId = { feature . video }
136
123
primaryColor = "#FFFFFF"
137
124
secondaryColor = "#000000"
138
125
muted = { true }
@@ -181,19 +168,18 @@ export function DevTools({ devTools }: LandingPageFragment) {
181
168
</ div >
182
169
</ h3 >
183
170
< p className = { clsx ( 'mb-8 mt-2 text-sm' ) } > { feature . subTitle } </ p >
184
- { featureImage . type === 'image' && (
171
+ { feature . type === 'image' ? (
185
172
< Image
186
173
className = "w-full"
187
- src = { featureImage . src }
174
+ src = { featureImage }
188
175
alt = ""
189
176
priority
190
177
sizes = "(min-width: 1024px) 67.8125rem, (min-width: 500px) 100vw, 30rem"
191
178
/>
192
- ) }
193
- { featureImage . type === 'mux-video' && (
179
+ ) : (
194
180
< MuxPlayer
195
181
streamType = "on-demand"
196
- playbackId = { featureImage . src as string }
182
+ playbackId = { feature . video }
197
183
primaryColor = "#FFFFFF"
198
184
secondaryColor = "#ff00ff"
199
185
muted = { true }
You can’t perform that action at this time.
0 commit comments