Skip to content

Commit 728aa5a

Browse files
chunkerchunkerSutuSebastian
authored andcommitted
fix formatting
1 parent ca4f841 commit 728aa5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/ui/src/components/Button/ButtonGroup.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,21 @@ const processChildren = (
2929
): ReactNode => {
3030
return Children.map(children as ReactElement<ButtonProps>[], (child, index) => {
3131
if (isValidElement(child)) {
32-
const positionInGroupProp = (child.type == Button) ? { positionInGroup: determinePosition(index, Children.count(children)) } : {};
32+
const positionInGroupProp =
33+
child.type == Button ? { positionInGroup: determinePosition(index, Children.count(children)) } : {};
3334
// Check if the child has nested children
3435
if (child.props.children) {
3536
// Recursively process nested children
3637
return cloneElement(child, {
3738
...child.props,
3839
children: processChildren(child.props.children, outline, pill),
39-
...positionInGroupProp
40+
...positionInGroupProp,
4041
});
4142
} else {
4243
return cloneElement(child, {
4344
outline,
4445
pill,
45-
...positionInGroupProp
46+
...positionInGroupProp,
4647
});
4748
}
4849
}

0 commit comments

Comments
 (0)