From 7ac5b65cdfde750f186073ee18879f693e53fa8b Mon Sep 17 00:00:00 2001 From: Bryant Gillespie Date: Mon, 11 Mar 2024 17:00:26 -0400 Subject: [PATCH] Pricing page updates (#140) * types * tier update * Remove unused code in Tier.vue --- components/Block/Tier.vue | 34 ++++++++++++++++++------------- types/schema/blocks/block-tier.ts | 1 + 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/components/Block/Tier.vue b/components/Block/Tier.vue index 3ddde613..28d8fccd 100644 --- a/components/Block/Tier.vue +++ b/components/Block/Tier.vue @@ -8,22 +8,19 @@ const props = defineProps(); const { data: block } = useAsyncData(props.uuid, () => $directus.request( $readItem('block_tier', props.uuid, { - fields: ['name', 'subtext', 'price', 'term', 'term_tooltip', 'cta', 'description', 'points'], + fields: ['name', 'subtext', 'price', 'term', 'term_tooltip', 'cta', 'description', 'points', 'highlight'], }), ), ); - -const priceValue = computed(() => unref(block)?.price.split(' ')[0]); -const priceText = computed(() => unref(block)?.price.substring(unref(priceValue)?.length ?? 0));