Skip to content

Commit

Permalink
Merge pull request #1550 from cozy/fix-badge-warnings
Browse files Browse the repository at this point in the history
fix: Prevent badge warnings from MUI
  • Loading branch information
y-lohse authored Sep 9, 2020
2 parents 0088f41 + b0e2576 commit dbd25a3
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 54 deletions.
8 changes: 5 additions & 3 deletions react/Badge/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const MEDIUM_DOT = '.75rem'
const SMALL_DOT = '.625rem'

const customStyles = theme => ({
badge: {},
root: {},
top: {
top: '16%'
},
Expand Down Expand Up @@ -102,9 +104,9 @@ const Badge = withStyles(customStyles)(
badge,
verticalClasses[anchorOrigin.vertical],
horizontalClasses[anchorOrigin.horizontal],
sizeClasses[size],
customClasses
)
sizeClasses[size]
),
...customClasses
}}
{...props}
/>
Expand Down
Loading

0 comments on commit dbd25a3

Please sign in to comment.