Reuse common dateStyle

This commit is contained in:
2025-08-14 20:20:54 +02:00
parent 24f933fbaa
commit 5146e8e490
7 changed files with 24 additions and 69 deletions
+2 -6
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import type { Team } from '~/pages/hunt/[huntSlug]/teams.vue';
import { fullDate } from '~~/server/utils/date';
const { confirm } = useModal();
const { init } = useToast();
@@ -162,12 +163,7 @@ async function deleteTeam() {
</h2>
<p>
Created at:
{{
d(team.createdAt, {
dateStyle: 'medium',
timeStyle: 'medium'
})
}}
{{ d(team.createdAt, fullDate) }}
by {{ team.owner.name }} ({{ team.owner.email }})
</p>
<p>{{ team._count.answers }} answers</p>