Skip to content

Commit af30fa1

Browse files
committed
feat: import LocationItem and TAGS in multiple components for improved type handling
1 parent 0703440 commit af30fa1

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

app/components/MapFiltersBar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import { TAGS, type TagKey } from "~/data/tags";
3+
24
const props = defineProps<{ activeTypes: TagKey[] }>();
35
const emit = defineEmits<{ (e: "toggle-type", type: TagKey): void }>();
46
</script>

app/components/MapPane.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import type { LocationItem } from "~/data/locations";
3+
24
const props = defineProps<{
35
items: LocationItem[];
46
selected: LocationItem | null;

app/components/MobileBottomSheet.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<script setup lang="ts">
22
import BottomSheet from "@douxcode/vue-spring-bottom-sheet";
33
import "@douxcode/vue-spring-bottom-sheet/dist/style.css";
4+
import type { LocationItem } from "~/data/locations";
5+
import { TAGS, type TagKey } from "~/data/tags";
46
57
const props = defineProps<{
68
items: LocationItem[];

app/components/SidebarList.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<script setup lang="ts">
2+
import type { LocationItem } from "~/data/locations";
3+
import { TAGS, type TagKey } from "~/data/tags";
4+
import { slugify } from "~/utils/slug";
5+
26
const props = withDefaults(
37
defineProps<{
48
items: LocationItem[];

0 commit comments

Comments
 (0)