Reuse common dateStyle
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user