Skip to content

Commit

Permalink
Merge pull request #602 from SUI-Components/feature/XCOMP-9946/apply-…
Browse files Browse the repository at this point in the history
…true-badge-small-by-default

feat(components/dropdown/user): Apply true small badge by default
  • Loading branch information
IsabelGomez87 committed Jul 6, 2023
2 parents 5f97f29 + c5015fc commit 3172341
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/dropdown/user/src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/* eslint-disable react/prop-types */
import {useReducer} from 'react'
import PropTypes from 'prop-types'

import cx from 'classnames'
import PropTypes from 'prop-types'

import MoleculeBadgeCounter, {
moleculeBadgeCounterSizes
} from '@s-ui/react-molecule-badge-counter'

import {reducerActions, reducerInitialState, reducer} from './reducer'
import {reducer, reducerActions, reducerInitialState} from './reducer'

const DropdownUser = ({
expandOnMouseOver = false,
Expand All @@ -18,7 +20,7 @@ const DropdownUser = ({
menu,
hasNotifications = menu.some(({notifications}) => Boolean(notifications)),
user,
hasBadgeLabel = false
hasBadgeLabel = true
}) => {
const [state, dispatch] = useReducer(reducer, reducerInitialState)

Expand Down Expand Up @@ -63,7 +65,7 @@ const DropdownUser = ({
<span className="sui-DropdownUserMenu-listNotification">
<MoleculeBadgeCounter
label={!!hasBadgeLabel && notifications}
size={moleculeBadgeCounterSizes.LARGE}
size={moleculeBadgeCounterSizes.SMALL}
/>
</span>
)}
Expand Down

0 comments on commit 3172341

Please sign in to comment.