Skip to content

Commit

Permalink
fix className location
Browse files Browse the repository at this point in the history
  • Loading branch information
randall-krauskopf committed Oct 9, 2024
1 parent c186ab6 commit c9dd0e0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/react/src/AvatarStack/AvatarStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,19 +196,18 @@ const AvatarStack = ({
sx: sxProp = defaultSxProp,
}: AvatarStackProps) => {
const count = React.Children.count(children)
const wrapperClassNames = clsx({
'pc-AvatarStack--two': count === 2,
'pc-AvatarStack--three': count === 3,
'pc-AvatarStack--three-plus': count > 3,
'pc-AvatarStack--right': alignRight,
})
const bodyClassNames = clsx(
'pc-AvatarStackBody',
const wrapperClassNames = clsx(
{
'pc-AvatarStack--disableExpand': disableExpand,
'pc-AvatarStack--two': count === 2,
'pc-AvatarStack--three': count === 3,
'pc-AvatarStack--three-plus': count > 3,
'pc-AvatarStack--right': alignRight,
},
className,
)
const bodyClassNames = clsx('pc-AvatarStackBody', {
'pc-AvatarStack--disableExpand': disableExpand,
})

const getAvatarChildSizes = () => {
const avatarSizeMap: Record<WidthOnlyViewportRangeKeys, number[]> = {
Expand Down

0 comments on commit c9dd0e0

Please sign in to comment.