Skip to content

Commit

Permalink
chore: rename composable to avoid large string
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed Nov 7, 2023
1 parent 9e8cd12 commit 49f0f15
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/column-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
Grid4ColIcon
} from '@empathyco/x-components';
import { useDevice } from '../composables/use-device.composable';
import { useXControlsHelpers } from '../composables/use-experience-controls.composable';
import { useXControls } from '../composables/use-experience-controls.composable';
export default defineComponent({
components: {
Expand All @@ -35,7 +35,7 @@
},
setup() {
const { isMobile } = useDevice();
const columns = useXControlsHelpers({
const columns = useXControls({
path: 'layout.columnSelector' as never,
defaultValue: [4, 2]
});
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/custom-semantic-queries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import { QueryPreviewList, useQueriesPreview } from '@empathyco/x-components/queries-preview';
import CustomSlidingPanel from '../custom-sliding-panel.vue';
import Result from '../results/result.vue';
import { useXControlsHelpers } from '../../composables/use-experience-controls.composable';
import { useXControls } from '../../composables/use-experience-controls.composable';
import DisplayClickProvider from './display-click-provider.vue';
export default defineComponent({
Expand All @@ -61,7 +61,7 @@
},
setup() {
const { isAnyQueryLoadedInPreview } = useQueriesPreview();
const maxItems = useXControlsHelpers({
const maxItems = useXControls({
path: 'semanticQueries.resultsPerCarousels' as never
});
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/results/results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
import { NextQueriesList } from '@empathyco/x-components/next-queries';
import { useDevice } from '../../../composables/use-device.composable';
import Result from '../../results/result.vue';
import { useXControlsHelpers } from '../../../composables/use-experience-controls.composable';
import { useXControls } from '../../../composables/use-experience-controls.composable';
import NextQueryPreview from './custom-next-query-preview.vue';
export default defineComponent({
Expand All @@ -76,7 +76,7 @@
},
setup() {
const { isMobile } = useDevice();
const maxItems = useXControlsHelpers({
const maxItems = useXControls({
path: 'nextQueries.maxItems' as never,
defaultValue: 1
});
Expand Down
2 changes: 1 addition & 1 deletion src/composables/use-experience-controls.composable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useStore } from './use-store.composable';
*
* @returns The experience controls property value.
*/
export const useXControlsHelpers = ({
export const useXControls = ({
path,
defaultValue
}: {
Expand Down

0 comments on commit 49f0f15

Please sign in to comment.