Skip to content

Commit 18f3dc5

Browse files
committed
SALG-1278: WIP - Check audio playing
1 parent 0b52aca commit 18f3dc5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/App.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import TagsList from "./components/tags/TagsList";
1010
import RoutePage from "./components/routes/RoutePage";
1111
import ApiEndpointContext from "./context/api-endpoint-context";
1212

13-
// import "./App.css";
14-
1513
function App() {
1614
const [geolocationAvailable, setGeolocationAvailable] = useState();
1715
const [lat, setLat] = useState(null);

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,17 @@ function PointOfInterest({
8585
if (isExperienceIdInLocalstorage()) {
8686
setUnlocked(true);
8787
}
88+
8889
}, []);
8990

9091
return (
91-
<div className="flex items-start gap-4 p-4">
92+
<div
93+
className={
94+
unlocked
95+
? `flex items-start gap-4 p-4`
96+
: `flex items-start gap-4 p-4 opacity-10`
97+
}
98+
>
9299
<Image src={image} className="w-24 h-24 rounded-full" />
93100
<div className="flex flex-col">
94101
<h2 className="text-zinc-900 text-sm font-bold dark:text-zinc-200 my-3">

src/components/routes/RoutePage.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import PointOfInterest from "../points-of-interest/PointOfInterest";
55
import { getAngleFromLocationToDestination } from "../../util/helper";
66
import BackButton from "../BackButton";
77
import { ReactComponent as LocationArrow } from "../../icons/location-arrow-solid.svg";
8+
import AudioContext from "../../context/audio-context";
89

910
function RoutePage() {
1011
const { id } = useParams();
@@ -97,8 +98,6 @@ function RoutePage() {
9798

9899
if (selectedRoute === null) return null;
99100

100-
console.log(audio);
101-
102101
return (
103102
<div className="flex flex-col place-items-start pb-20">
104103
<BackButton>Afslut</BackButton>

0 commit comments

Comments
 (0)