Skip to content

Commit

Permalink
move JSdoc example to proper position
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Feb 22, 2023
1 parent 7fd2fe7 commit 6ca7c5f
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions packages/components/src/circular-option-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,32 +105,6 @@ export function ButtonAction( {
);
}

function CircularOptionPicker( props: CircularOptionPickerProps ) {
const { actions, className, options, children } = props;
return (
<div
className={ classnames(
'components-circular-option-picker',
className
) }
>
<div className="components-circular-option-picker__swatches">
{ options }
</div>
{ children }
{ actions && (
<div className="components-circular-option-picker__custom-clear-wrapper">
{ actions }
</div>
) }
</div>
);
}

CircularOptionPicker.Option = Option;
CircularOptionPicker.ButtonAction = ButtonAction;
CircularOptionPicker.DropdownLinkAction = DropdownLinkAction;

/**
*`CircularOptionPicker` is a component that displays a set of options as circular buttons.
*
Expand Down Expand Up @@ -177,4 +151,30 @@ CircularOptionPicker.DropdownLinkAction = DropdownLinkAction;
* ```
*/

function CircularOptionPicker( props: CircularOptionPickerProps ) {
const { actions, className, options, children } = props;
return (
<div
className={ classnames(
'components-circular-option-picker',
className
) }
>
<div className="components-circular-option-picker__swatches">
{ options }
</div>
{ children }
{ actions && (
<div className="components-circular-option-picker__custom-clear-wrapper">
{ actions }
</div>
) }
</div>
);
}

CircularOptionPicker.Option = Option;
CircularOptionPicker.ButtonAction = ButtonAction;
CircularOptionPicker.DropdownLinkAction = DropdownLinkAction;

export default CircularOptionPicker;

0 comments on commit 6ca7c5f

Please sign in to comment.