remove date from cards

This commit is contained in:
Hayden 2022-12-31 11:44:15 -09:00
parent 824a1d0bc4
commit 9f0b09be52
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -13,16 +13,13 @@
</span> </span>
</NuxtLink> </NuxtLink>
</div> </div>
<div class="rounded-b p-4 flex-grow col-span-4 flex flex-col gap-y-2 bg-base-100"> <div class="rounded-b p-4 pt-2 flex-grow col-span-4 flex flex-col gap-y-2 bg-base-100">
<div class="flex justify-between gap-2"> <div class="flex justify-between gap-2">
<div class="mr-auto tooltip" data-tip="Purchase Price"> <div class="mr-auto tooltip tooltip-tip" data-tip="Purchase Price">
<span class="badge badge-sm badge-ghost h-5"> <span class="badge badge-sm badge-ghost h-5">
<Currency :amount="item.purchasePrice" /> <Currency :amount="item.purchasePrice" />
</span> </span>
</div> </div>
<div v-if="item.createdAt" class="tooltip z-10" :data-tip="datetime">
<Icon class="h-5 w-5 text-primary" name="mdi-calendar" />
</div>
<div v-if="item.insured" class="tooltip z-10" data-tip="Insured"> <div v-if="item.insured" class="tooltip z-10" data-tip="Insured">
<Icon class="h-5 w-5 text-primary" name="mdi-shield-check" /> <Icon class="h-5 w-5 text-primary" name="mdi-shield-check" />
</div> </div>
@ -50,10 +47,6 @@
return props.item.labels.slice(0, 3) || []; return props.item.labels.slice(0, 3) || [];
}); });
const datetime = computed(() => {
return "Created " + fmtDate(props.item.createdAt, "human");
});
const props = defineProps({ const props = defineProps({
item: { item: {
type: Object as () => ItemOut | ItemSummary, type: Object as () => ItemOut | ItemSummary,