File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import TagsList from "./components/tags/TagsList";
10
10
import RoutePage from "./components/routes/RoutePage" ;
11
11
import ApiEndpointContext from "./context/api-endpoint-context" ;
12
12
13
- // import "./App.css";
14
-
15
13
function App ( ) {
16
14
const [ geolocationAvailable , setGeolocationAvailable ] = useState ( ) ;
17
15
const [ lat , setLat ] = useState ( null ) ;
Original file line number Diff line number Diff line change @@ -85,10 +85,17 @@ function PointOfInterest({
85
85
if ( isExperienceIdInLocalstorage ( ) ) {
86
86
setUnlocked ( true ) ;
87
87
}
88
+
88
89
} , [ ] ) ;
89
90
90
91
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
+ >
92
99
< Image src = { image } className = "w-24 h-24 rounded-full" />
93
100
< div className = "flex flex-col" >
94
101
< h2 className = "text-zinc-900 text-sm font-bold dark:text-zinc-200 my-3" >
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import PointOfInterest from "../points-of-interest/PointOfInterest";
5
5
import { getAngleFromLocationToDestination } from "../../util/helper" ;
6
6
import BackButton from "../BackButton" ;
7
7
import { ReactComponent as LocationArrow } from "../../icons/location-arrow-solid.svg" ;
8
+ import AudioContext from "../../context/audio-context" ;
8
9
9
10
function RoutePage ( ) {
10
11
const { id } = useParams ( ) ;
@@ -97,8 +98,6 @@ function RoutePage() {
97
98
98
99
if ( selectedRoute === null ) return null ;
99
100
100
- console . log ( audio ) ;
101
-
102
101
return (
103
102
< div className = "flex flex-col place-items-start pb-20" >
104
103
< BackButton > Afslut</ BackButton >
You can’t perform that action at this time.
0 commit comments