Skip to content

Commit

Permalink
refactor: adjust typing
Browse files Browse the repository at this point in the history
  • Loading branch information
cf-remylenoir committed Sep 20, 2024
1 parent 77e1724 commit 666cdcf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/components/avatar/src/Avatar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ export const convertSizeToPixels = (size: AvatarProps['size']): SizeInPixel => {
* @param size
* @returns The variant or custom size in pixels, e.g. '32px'
*/
export function getSizeInPixels(
size: AvatarProps['size'],
): AvatarProps['size'] {
export function getSizeInPixels(size: AvatarProps['size']): SizeInPixel {
return isSizeVariant(size) ? convertSizeToPixels(size) : size;
}

0 comments on commit 666cdcf

Please sign in to comment.