@@ -21,8 +21,8 @@ function RoutePage() {
21
21
const [ userLatitude , setUserLatitude ] = useState ( 0 ) ;
22
22
const [ userLongitude , setUserLongitude ] = useState ( 0 ) ;
23
23
const { audio } = useContext ( AudioContext ) ;
24
- let handlerAvailable = true ;
25
- let locationHandlerAvailable = true ;
24
+ const handlerAvailable = true ;
25
+ const locationHandlerAvailable = true ;
26
26
const isIOS =
27
27
navigator . userAgent . match ( / ( i P o d | i P h o n e | i P a d ) / ) &&
28
28
navigator . userAgent . match ( / A p p l e W e b K i t / ) ;
@@ -102,20 +102,24 @@ function RoutePage() {
102
102
< h1 className = "text-xl font-bold my-3" > { selectedRoute . name } </ h1 >
103
103
< div className = "relative w-full rounded-lg flex flex-col-reverse gap-1" >
104
104
{ pointsOfInterest &&
105
- pointsOfInterest
106
- . map ( ( pointOfInterest , index ) => (
107
- < PointOfInterest
108
- pointOfInterest = { pointOfInterest }
109
- key = { pointOfInterest . id }
110
- index = { index + 1 }
111
- />
112
- ) ) }
105
+ pointsOfInterest . map ( ( pointOfInterest , index ) => (
106
+ < PointOfInterest
107
+ pointOfInterest = { pointOfInterest }
108
+ key = { pointOfInterest . id }
109
+ index = { index + 1 }
110
+ />
111
+ ) ) }
113
112
</ div >
114
113
{ /* TODO: Make room for audio player below when playing */ }
115
114
< div className = "fixed left-3 bottom-3 right-3 bg-zinc-200 dark:bg-zinc-700 flex gap-3 rounded-lg p-3 pb-15 divide-x dark:divide-zinc-200/5" >
116
115
< div >
117
- < span className = "block text-sm text-bold" > Afstand til del 1</ span >
118
- < span className = "block" > 180 meter</ span >
116
+ < div className = "text-sm text-bold" >
117
+ Afstand til del
118
+ < span className = "ml-1 px-2 font-bold rounded-full bg-emerald-700 text-zinc-100 text-sm" >
119
+ 1
120
+ </ span >
121
+ </ div >
122
+ < div className = "" > 180 meter</ div >
119
123
</ div >
120
124
< div className = "pl-3" >
121
125
{ /* TODO: Make this check for compass */ }
0 commit comments