Skip to content

Commit c9faed1

Browse files
committed
refactor: isMoreSilver
1 parent 159e7e1 commit c9faed1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/web/app/components/admin/SponsorList.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { Speaker, Sponsor } from '@vuejs-jp/model'
3+
import { useSponsor } from '~/composables/useSponsor'
34
import { ref } from 'vue'
45
56
interface SponsorListProps {
@@ -11,6 +12,8 @@ const emit = defineEmits<{ edit: [id: string] }>()
1112
1213
const props = defineProps<SponsorListProps>()
1314
15+
const { isMoreSilver } = useSponsor()
16+
1417
const showDialog = ref(false)
1518
const sponsorId = ref('')
1619
const handleDialog = (id?: string) => {
@@ -68,8 +71,8 @@ const handleDialog = (id?: string) => {
6871
</p>
6972
</td>
7073
<td>
71-
<p>{{ sponsor.description_ja }}</p>
72-
<p>{{ sponsor.description_en }}</p>
74+
<p>{{ isMoreSilver(sponsor.tag) ? sponsor.description_ja : '設定不要' }}</p>
75+
<p>{{ isMoreSilver(sponsor.tag) ? sponsor.description_en : '設定不要' }}</p>
7376
</td>
7477
<td style="max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
7578
{{ sponsor.link_url }}

0 commit comments

Comments
 (0)