Compare commits
2 commits
a572d710b3
...
0dfca0de17
Author | SHA1 | Date | |
---|---|---|---|
0dfca0de17 | |||
af238ff7e2 |
2 changed files with 2 additions and 8 deletions
|
@ -40,7 +40,7 @@ const getRouteByCategory = async (categoryId: number) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getRoute = async (routeId: number) => {
|
const getRoute = async (routeId: number) => {
|
||||||
let data = [];
|
let data = {};
|
||||||
if (import.meta.env.PROD) {
|
if (import.meta.env.PROD) {
|
||||||
const response = await fetch(`${API_URL}/route/${routeId}`);
|
const response = await fetch(`${API_URL}/route/${routeId}`);
|
||||||
const json = await response.json();
|
const json = await response.json();
|
||||||
|
|
|
@ -6,12 +6,6 @@
|
||||||
export let data: App.Route;
|
export let data: App.Route;
|
||||||
|
|
||||||
let divider;
|
let divider;
|
||||||
|
|
||||||
onMount(async () => {
|
|
||||||
console.log(data);
|
|
||||||
});
|
|
||||||
|
|
||||||
const mapClick = (evt) => {};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Header></Header>
|
<Header></Header>
|
||||||
|
@ -22,7 +16,7 @@
|
||||||
<p>Percorso <b>{data.name_it}</b></p>
|
<p>Percorso <b>{data.name_it}</b></p>
|
||||||
<p id="duration">Dislivello {data.elevation_gain}</p>
|
<p id="duration">Dislivello {data.elevation_gain}</p>
|
||||||
</div>
|
</div>
|
||||||
<Tabs on:map-click={mapClick} route={data}></Tabs>
|
<Tabs route={data}></Tabs>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in a new issue