Add US map component to world travel page

This commit is contained in:
Sean Morley
2024-04-14 17:58:18 +00:00
parent 8133e8e99e
commit 715a4ffd87
2 changed files with 10 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
import { getFlag } from "$lib";
import { goto } from "$app/navigation";
import { onMount } from "svelte";
import Us from "$lib/components/maps/US.svelte";
let viewType: String = "cards";
@@ -100,4 +101,8 @@
</div>
{/if}
{#if viewType == "map"}{/if}
{#if viewType == "map"}
{#if data.countrycode.toLowerCase() == "us"}
<Us on:marked={markVisited} />
{/if}
{/if}