Skip to content

Commit 5c9ed3d

Browse files
committed
SALG-1278: Coding styles
1 parent b9b9770 commit 5c9ed3d

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

src/components/points-of-interest/PointOfInterest.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function PointOfInterest({
2626
index,
2727
destinationChanged,
2828
nextUnlockableId,
29-
setSource
29+
setSource,
3030
}) {
3131
const { lat, long } = useContext(LatLongContext);
3232
const [proximity, setProximity] = useState(null);

src/components/routes/RoutePage.jsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ function RoutePage() {
158158

159159
if (selectedRoute === null) return null;
160160

161-
162161
return (
163162
<div className="flex flex-col place-items-start pb-36">
164163
<BackButton>Afslut</BackButton>
@@ -221,18 +220,17 @@ function RoutePage() {
221220
</div>
222221
)}
223222

224-
{source && audioRef &&
223+
{source && audioRef && (
225224
<div className="pt-2">
226225
<p className="text-xs text-zinc-500">Igangværende afspilning</p>
226+
{/* TODO: Get the real name instead of Pizza 1 */}
227227
<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>
234232
</div>
235-
}
233+
)}
236234
</div>
237235
<div ref={bottomRef} />
238236
</div>

0 commit comments

Comments
 (0)