Skip to content

Commit

Permalink
chore(ui-avatar): add exceptions for chromatic rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
balzss committed Dec 5, 2023
1 parent 693ea76 commit cff4553
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export default {
return true
}

if (
(props.src && props.showBorder === 'never') ||
(!props.src && props.showBorder === 'always')
) {
return true
}

if (props.renderIcon && props.src) {
return true
}
Expand Down

0 comments on commit cff4553

Please sign in to comment.