summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/explore.featured.vue
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-10-05 15:48:11 +0900
committerGitHub <noreply@github.com>2025-10-05 15:48:11 +0900
commit720c6519cdca2b2c969cb5d8ce2de0145005b432 (patch)
tree6a72acfb95453c5bc1e038aaac7da3ca53ce6878 /packages/frontend/src/pages/explore.featured.vue
parentUpdate CHANGELOG with new features and enhancements (diff)
downloadmisskey-720c6519cdca2b2c969cb5d8ce2de0145005b432.tar.gz
misskey-720c6519cdca2b2c969cb5d8ce2de0145005b432.tar.bz2
misskey-720c6519cdca2b2c969cb5d8ce2de0145005b432.zip
refactor(frontend): MkTabの指定をpropsから行うように (#16596)
* refactor(frontend): MkTabの指定をpropsから行うように * Update explore.featured.vue
Diffstat (limited to 'packages/frontend/src/pages/explore.featured.vue')
-rw-r--r--packages/frontend/src/pages/explore.featured.vue13
1 files changed, 9 insertions, 4 deletions
diff --git a/packages/frontend/src/pages/explore.featured.vue b/packages/frontend/src/pages/explore.featured.vue
index abb816a956..3158b384d2 100644
--- a/packages/frontend/src/pages/explore.featured.vue
+++ b/packages/frontend/src/pages/explore.featured.vue
@@ -5,9 +5,14 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div class="_spacer" style="--MI_SPACER-w: 800px;">
- <MkTab v-model="tab" style="margin-bottom: var(--MI-margin);">
- <option value="notes">{{ i18n.ts.notes }}</option>
- <option value="polls">{{ i18n.ts.poll }}</option>
+ <MkTab
+ v-model="tab"
+ :tabs="[
+ { key: 'notes', label: i18n.ts.notes },
+ { key: 'polls', label: i18n.ts.poll },
+ ]"
+ style="margin-bottom: var(--MI-margin);"
+ >
</MkTab>
<MkNotesTimeline v-if="tab === 'notes'" :paginator="paginatorForNotes"/>
<MkNotesTimeline v-else-if="tab === 'polls'" :paginator="paginatorForPolls"/>
@@ -33,5 +38,5 @@ const paginatorForPolls = markRaw(new Paginator('notes/polls/recommendation', {
},
}));
-const tab = ref('notes');
+const tab = ref<'notes' | 'polls'>('notes');
</script>