mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 20:05:39 +00:00
Update home page and components to integrate with discover navigation
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<template>
|
||||
<div ref="resultSection" class="resultSection">
|
||||
<page-header v-bind="{ title, info, shortList }" />
|
||||
<page-header
|
||||
v-bind="{ title, info, shortList, sectionType: props.sectionType }"
|
||||
/>
|
||||
|
||||
<div
|
||||
v-if="!loadedPages.includes(1) && loading == false"
|
||||
@@ -40,9 +42,12 @@
|
||||
title: string;
|
||||
apiFunction: (page: number) => Promise<IList>;
|
||||
shortList?: boolean;
|
||||
sectionType?: "list" | "discover";
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
sectionType: "list"
|
||||
});
|
||||
|
||||
const results: Ref<ListResults> = ref([]);
|
||||
const page: Ref<number> = ref(1);
|
||||
|
||||
Reference in New Issue
Block a user