Skip to content

Commit

Permalink
Rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 17, 2025
1 parent cbf0929 commit 7599ff3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/circular-option-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export {
ButtonAction,
DropdownLinkAction,
} from './circular-option-picker-actions';
export { useComputeCircularOptionPickerCommonProps } from './utils';
export { getComputeCircularOptionPickerCommonProps } from './utils';

export default CircularOptionPicker;
2 changes: 1 addition & 1 deletion packages/components/src/circular-option-picker/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { __ } from '@wordpress/i18n';
/**
* Computes the common props for the CircularOptionPicker.
*/
export function useComputeCircularOptionPickerCommonProps(
export function getComputeCircularOptionPickerCommonProps(
asButtons?: boolean,
loop?: boolean,
ariaLabel?: string,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/color-palette/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { useCallback, useMemo, useState, forwardRef } from '@wordpress/element';
import Dropdown from '../dropdown';
import { ColorPicker } from '../color-picker';
import CircularOptionPicker, {
useComputeCircularOptionPickerCommonProps,
getComputeCircularOptionPickerCommonProps,
} from '../circular-option-picker';
import { VStack } from '../v-stack';
import { Truncate } from '../truncate';
Expand Down Expand Up @@ -253,7 +253,7 @@ function UnforwardedColorPalette(
</CircularOptionPicker.ButtonAction>
);

const { metaProps, labelProps } = useComputeCircularOptionPickerCommonProps(
const { metaProps, labelProps } = getComputeCircularOptionPickerCommonProps(
asButtons,
loop,
ariaLabel,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/duotone-picker/duotone-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { __, sprintf } from '@wordpress/i18n';
*/
import ColorListPicker from './color-list-picker';
import CircularOptionPicker, {
useComputeCircularOptionPickerCommonProps,
getComputeCircularOptionPickerCommonProps,
} from '../circular-option-picker';
import { VStack } from '../v-stack';

Expand Down Expand Up @@ -129,7 +129,7 @@ function DuotonePicker( {
);
} );

const { metaProps, labelProps } = useComputeCircularOptionPickerCommonProps(
const { metaProps, labelProps } = getComputeCircularOptionPickerCommonProps(
asButtons,
loop,
ariaLabel,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/gradient-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useCallback, useMemo } from '@wordpress/element';
* Internal dependencies
*/
import CircularOptionPicker, {
useComputeCircularOptionPickerCommonProps,
getComputeCircularOptionPickerCommonProps,
} from '../circular-option-picker';
import CustomGradientPicker from '../custom-gradient-picker';
import { VStack } from '../v-stack';
Expand Down Expand Up @@ -130,7 +130,7 @@ function Component( props: PickerProps< any > ) {
<SingleOrigin { ...additionalProps } />
);

const { metaProps, labelProps } = useComputeCircularOptionPickerCommonProps(
const { metaProps, labelProps } = getComputeCircularOptionPickerCommonProps(
asButtons,
loop,
ariaLabel,
Expand Down

0 comments on commit 7599ff3

Please sign in to comment.