Skip to content

Commit

Permalink
🚚 Renamed Props to AvatarProps
Browse files Browse the repository at this point in the history
..
  • Loading branch information
pomfrida committed Oct 23, 2020
1 parent 20c2601 commit b3f3381
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions apps/storybook-react/images/custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.jpg' {
const value: any
export default value
}
1 change: 0 additions & 1 deletion apps/storybook-react/images/type.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions libraries/core-react/src/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const StyledImage = styled.img<StyledImageProps>`
`};
`

type Props = {
type AvatarProps = {
alt: string
/** Image source
@default null */
Expand All @@ -57,7 +57,7 @@ type Props = {
disabled?: boolean
}

export const Avatar = forwardRef<HTMLHRElement, Props>((props, ref) => {
export const Avatar = forwardRef<HTMLHRElement, AvatarProps>((props, ref) => {
const { src = null, alt, size = 24, disabled = false, ...rest } = props

return (
Expand Down

0 comments on commit b3f3381

Please sign in to comment.