Skip to content

Commit

Permalink
fix(core): remove withTooltip prop from dom
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Apr 23, 2024
1 parent b5532ff commit 086d110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sanity/src/core/components/userAvatar/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ function nameToInitials(fullName: string) {
* @hidden
* @beta */
export function UserAvatar(props: UserAvatarProps) {
const {user, ...restProps} = props
const {user, withTooltip, ...restProps} = props

if (isRecord(user)) {
if (restProps.withTooltip) {
if (withTooltip) {
return <TooltipUserAvatar {...restProps} user={user as User} />
}

Expand Down

0 comments on commit 086d110

Please sign in to comment.