Skip to content

Commit

Permalink
fix(default-slot): fix minor default slots
Browse files Browse the repository at this point in the history
  • Loading branch information
joseacabaneros committed Aug 1, 2024
1 parent 5d69d64 commit 3bd300a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
},
/** Animation to use when switching between the loaded image and the hover image. */
hoverAnimation: {
type: animationProp,
default: () => NoAnimation
type: animationProp
},
/**
* Indicates if the next valid image should be displayed on hover.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { defineComponent, ref, computed, watch, provide, Ref, PropType, h } from 'vue';
import { defineComponent, ref, computed, watch, provide, Ref, PropType } from 'vue';
import { Result, ResultVariant } from '@empathyco/x-types';
import {
RESULT_WITH_VARIANTS_KEY,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { computed, defineComponent, h } from 'vue';
import { computed, defineComponent } from 'vue';
import { extraParamsXModule } from '../x-module';
import { useState } from '../../../composables/use-state';
import { useXBus } from '../../../composables/use-x-bus';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Filter, isBooleanFilter } from '@empathyco/x-types';
import { computed, defineComponent, PropType, provide, h } from 'vue';
import { computed, defineComponent, PropType, provide } from 'vue';
import { facetsXModule } from '../../x-module';
import { useFiltersInjection } from '../../composables/use-filters-injection';
Expand Down Expand Up @@ -44,7 +44,7 @@
);
provide('filters', filtersWithResults);
return () => slots.default?.({ filters: filtersWithResults.value }) ?? '';
return () => slots.default?.({ filters: filtersWithResults.value })[0] ?? '';
}
});
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { BooleanFilter, Filter, isBooleanFilter } from '@empathyco/x-types';
import { computed, defineComponent, PropType, provide, h } from 'vue';
import { computed, defineComponent, PropType, provide } from 'vue';
import { isArrayEmpty } from '../../../../utils';
import { facetsXModule } from '../../x-module';
import { useFiltersInjection } from '../../composables/use-filters-injection';
Expand Down Expand Up @@ -52,7 +52,7 @@
});
provide('filters', sortedFilters);
return () => slots.default?.({ filters: sortedFilters.value }) ?? '';
return () => slots.default?.({ filters: sortedFilters.value })[0] ?? '';
}
});
</script>
Expand Down

0 comments on commit 3bd300a

Please sign in to comment.