add contest detail.

This commit is contained in:
2023-01-23 22:56:50 +08:00
parent b060262f70
commit 7def5a4d83
8 changed files with 118 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
<script setup lang="ts">
import { Contest } from "~/utils/types"
import { ContestType } from "~/utils/constants"
defineProps<{ contest: Contest }>()
</script>
@@ -8,7 +9,7 @@ defineProps<{ contest: Contest }>()
<span>{{ contest.title }}</span>
<n-icon
class="lockIcon"
v-if="contest.contest_type === 'Password Protected'"
v-if="contest.contest_type === ContestType.private"
>
<i-ep-lock />
</n-icon>