fix: แก้ type ของ status

This commit is contained in:
Net 2024-06-11 15:05:16 +07:00
parent 253303dbf9
commit 5617549850

View file

@ -1,14 +1,14 @@
<script setup lang="ts">
import AppBox from 'components/app/AppBox.vue';
import AllAroundBtn from '../AllAroundBtn.vue';
import { dateFormat } from 'src/utils/datetime';
import { Status } from 'src/stores/types';
withDefaults(
defineProps<{
title?: string;
subtitle?: string;
color?: string;
status?: boolean;
status?: Status;
date?: Date;
}>(),
{
@ -47,7 +47,7 @@ withDefaults(
<div class="app-text-muted">{{ $t('status') }}</div>
<q-badge
v-if="status"
v-if="status !== 'INACTIVE'"
class="q-px-md q-py-xs rounded"
style="background-color: var(--teal-0); color: var(--teal-6)"
>