Skip to content

Commit

Permalink
fix: default avatar icon size
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy committed Sep 2, 2024
1 parent fd4904c commit ef013bf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
20 changes: 10 additions & 10 deletions src/components/__snapshots__/RepositoryNotifications.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/components/icons/AvatarIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ export const AvatarIcon: FC<IAvatarIcon> = (props: IAvatarIcon) => {
);
}

const defaultIconSize =
props.size === Size.XSMALL ? 16 : props.size === Size.SMALL ? 20 : 24;

return (
<props.defaultIcon
size={props.size}
size={defaultIconSize}
className="text-gray-500 dark:text-gray-300"
/>
);
Expand Down
8 changes: 4 additions & 4 deletions src/components/icons/__snapshots__/AvatarIcon.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef013bf

Please sign in to comment.