Skip to content

Commit

Permalink
fix: user prop and user link warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tianenpang committed May 10, 2022
1 parent 777a006 commit b1b2c35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/user/user.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const StyledUserDesc = styled('span', {
}
});

export const StyledUserLink = styled('a', {
export const StyledUserLink = styled('span', {
a: {
'&:hover': {
opacity: 0.7
Expand Down
6 changes: 4 additions & 2 deletions packages/react/src/user/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const User = React.forwardRef(
bordered,
size,
description,
zoomed,
pointer,
...otherProps
} = props;

Expand All @@ -67,8 +69,8 @@ export const User = React.forwardRef(
src={src}
color={color}
squared={squared}
zoomed={props.zoomed}
pointer={props.pointer}
zoomed={zoomed}
pointer={pointer}
bordered={bordered}
text={text}
size={size}
Expand Down

0 comments on commit b1b2c35

Please sign in to comment.