File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ const isTeleportViewMode = computed(() =>
127127)
128128
129129const currencyFormat = computed (() => currencies [snippetConfig .currency ! ])
130- provide < string > (' currencyFormat' , currencyFormat . value )
130+ provide (' currencyFormat' , currencyFormat )
131131
132132const queriesPreviewInfo = computed (() => snippetConfig .queriesPreview ?? [])
133133provide <ComputedRef <QueryPreviewInfo []> | undefined >(' queriesPreviewInfo' , queriesPreviewInfo )
Original file line number Diff line number Diff line change 5656 <span class =" x-text2 x-text-lead-50" >{{ result.brand }}</span >
5757 </template >
5858 <div class =" x-flex x-flex-wrap x-gap-8" >
59- <BaseResultCurrentPrice :result =" result" class =" x-text2 x-text2-lg x-font-bold" />
59+ <BaseResultCurrentPrice
60+ :result =" result"
61+ :format =" currencyFormat"
62+ class =" x-text2 x-text2-lg x-font-bold"
63+ />
6064 <BaseResultPreviousPrice
6165 :result =" result"
66+ :format =" currencyFormat"
6267 class =" x-text2 x-leading-[1.7] x-text-neutral-75 x-line-through"
6368 />
6469 </div >
7075<script setup lang="ts">
7176import type { SnippetConfig } from ' @empathyco/x-components'
7277import type { Result } from ' @empathyco/x-types'
78+ import type { ComputedRef } from ' vue'
7379import {
7480 BaseEventButton ,
7581 BaseFallbackImage ,
@@ -97,6 +103,8 @@ const props = withDefaults(defineProps<Props>(), {
97103 showAddToCart: true ,
98104})
99105
106+ const currencyFormat = inject <ComputedRef <string >>(' currencyFormat' )!
107+
100108const events = { UserClickedResultWithVariants: props .result }
101109const onWishlistClickEvents = { UserClickedResultWishlist: props .result }
102110
You can’t perform that action at this time.
0 commit comments