Skip to content

Commit e33677b

Browse files
committed
SALG-1278: Reuse pill style. Apply CS.
1 parent fce060f commit e33677b

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function PointOfInterest({
2020
subtitles,
2121
podcast,
2222
IFrameUrl,
23-
}, index
23+
},
24+
index,
2425
}) {
2526
const { lat, long } = useContext(LatLongContext);
2627
const { setSource } = useContext(AudioContext);
@@ -141,7 +142,7 @@ function PointOfInterest({
141142
)}
142143
</div>
143144
{viewSubtitles && (
144-
<div className="bg-zinc-200 text-zinc-800 dark:bg-zinc-500 dark:text-white p-2 rounded mt-2">
145+
<div className="bg-zinc-200 text-zinc-800 dark:bg-zinc-600 dark:text-white p-2 rounded mt-2">
145146
{subtitles}
146147
</div>
147148
)}

src/components/routes/RoutePage.jsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ function RoutePage() {
2121
const [userLatitude, setUserLatitude] = useState(0);
2222
const [userLongitude, setUserLongitude] = useState(0);
2323
const { audio } = useContext(AudioContext);
24-
let handlerAvailable = true;
25-
let locationHandlerAvailable = true;
24+
const handlerAvailable = true;
25+
const locationHandlerAvailable = true;
2626
const isIOS =
2727
navigator.userAgent.match(/(iPod|iPhone|iPad)/) &&
2828
navigator.userAgent.match(/AppleWebKit/);
@@ -102,20 +102,24 @@ function RoutePage() {
102102
<h1 className="text-xl font-bold my-3">{selectedRoute.name}</h1>
103103
<div className="relative w-full rounded-lg flex flex-col-reverse gap-1">
104104
{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+
))}
113112
</div>
114113
{/* TODO: Make room for audio player below when playing */}
115114
<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">
116115
<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>
119123
</div>
120124
<div className="pl-3">
121125
{/* TODO: Make this check for compass */}

0 commit comments

Comments
 (0)