File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function PointOfInterest({
26
26
index,
27
27
destinationChanged,
28
28
nextUnlockableId,
29
- setSource
29
+ setSource,
30
30
} ) {
31
31
const { lat, long } = useContext ( LatLongContext ) ;
32
32
const [ proximity , setProximity ] = useState ( null ) ;
Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ function RoutePage() {
158
158
159
159
if ( selectedRoute === null ) return null ;
160
160
161
-
162
161
return (
163
162
< div className = "flex flex-col place-items-start pb-36" >
164
163
< BackButton > Afslut</ BackButton >
@@ -221,18 +220,17 @@ function RoutePage() {
221
220
</ div >
222
221
) }
223
222
224
- { source && audioRef &&
223
+ { source && audioRef && (
225
224
< div className = "pt-2" >
226
225
< p className = "text-xs text-zinc-500" > Igangværende afspilning</ p >
226
+ { /* TODO: Get the real name instead of Pizza 1 */ }
227
227
< p className = "text-sm font-bold " > Pizza 1</ p >
228
- < audio
229
- className = "w-full"
230
- ref = { audioRef }
231
- controls
232
- src = { `${ fileUrl } ${ source } ` }
233
- />
228
+ < audio className = "w-full" ref = { audioRef } controls >
229
+ < source src = { `${ fileUrl } ${ source } ` } type = "audio/mpeg" />
230
+ Your browser does not support the audio element.
231
+ </ audio >
234
232
</ div >
235
- }
233
+ ) }
236
234
</ div >
237
235
< div ref = { bottomRef } />
238
236
</ div >
You can’t perform that action at this time.
0 commit comments