Skip to content

Commit

Permalink
chore: add type and rename feature prop
Browse files Browse the repository at this point in the history
  • Loading branch information
CachedaCodes committed Jun 14, 2023
1 parent e1de315 commit 0bd3600
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/search/custom-semantic-queries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<ArrowRightIcon class="x-icon-lg" />
</BaseEventButton>
</template>
<DisplayClickProvider feature="semantics">
<DisplayClickProvider resultFeature="semantics">
<div class="x-flex x-gap-16 x-pt-16 max-desktop:x-px-16">
<Result
v-for="result in results"
Expand Down
8 changes: 4 additions & 4 deletions src/components/search/display-click-provider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
</template>

<script lang="ts">
import { NoElement, ResultFeature, use$x } from '@empathyco/x-components';
import { DisplayWireMetadata, NoElement, ResultFeature, use$x } from '@empathyco/x-components';
import { computed, defineComponent, PropType, provide } from 'vue';
export default defineComponent({
components: {
NoElement
},
props: {
feature: {
resultFeature: {
type: String as PropType<ResultFeature>,
required: true
},
Expand All @@ -25,9 +25,9 @@
setup(props) {
const $x = use$x();
const displayClickMetadata = computed(() => ({
const displayClickMetadata = computed<Partial<DisplayWireMetadata>>(() => ({
displayOriginalQuery: $x.query.search,
feature: props.feature
feature: props.resultFeature
}));
provide('resultClickExtraEvents', ['UserClickedADisplayResult']);
Expand Down

0 comments on commit 0bd3600

Please sign in to comment.