refactor: tidy masto icons

This commit is contained in:
三咲智子 2023-01-03 20:03:46 +08:00
parent ef417f3ccf
commit b14add8c83
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
6 changed files with 26 additions and 23 deletions

View file

@ -1,5 +1,6 @@
<script setup lang="ts">
import type { Status } from 'masto'
import { statusVisibilities } from '~/composables/masto/icons'
const props = withDefaults(defineProps<{
status: Status
@ -17,7 +18,7 @@ const status = $computed(() => {
const createdAt = useFormattedDateTime(status.createdAt)
const visibility = $computed(() => STATUS_VISIBILITIES.find(v => v.value === status.visibility)!)
const visibility = $computed(() => statusVisibilities.find(v => v.value === status.visibility)!)
const { t } = useI18n()