Expose public condition labels and safe market values on listing details, with Storybook coverage for market value presentation.
This commit is contained in:
@@ -8,6 +8,8 @@ defineProps({
|
||||
title: { type: String, required: true },
|
||||
status: { type: String, default: '' },
|
||||
priceMinor: { type: Number, default: null },
|
||||
marketValueMinor: { type: Number, default: null },
|
||||
marketValueCurrency: { type: String, default: 'USD' },
|
||||
condition: { type: String, default: '' },
|
||||
description: { type: String, default: '' },
|
||||
facts: { type: Array, default: () => [] },
|
||||
@@ -27,6 +29,7 @@ defineProps({
|
||||
<p v-if="description" class="detail-notes">{{ description }}</p>
|
||||
<div class="collectible-detail__summary">
|
||||
<PriceDisplay v-if="priceMinor !== null" :amount-minor="priceMinor" />
|
||||
<PriceDisplay v-if="marketValueMinor !== null" label="Market value" :amount-minor="marketValueMinor" />
|
||||
<ConditionBadge v-if="condition" :label="condition" />
|
||||
</div>
|
||||
<dl v-if="facts.length" class="product-facts">
|
||||
|
||||
Reference in New Issue
Block a user