Skip to content

Commit

Permalink
review comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vineet119 committed Oct 7, 2024
1 parent 5ae70be commit 29c9b74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/core/src/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ export const Avatar = forwardRef<HTMLDivElement, AvatarProps>(function Avatar(
src,
size = DEFAULT_AVATAR_SIZE,
style: styleProp,
fallbackIcon,
fallbackIcon: fallbackIconProp,
...rest
},
ref,
) {
const targetWindow = useWindow();
const { UserIcon } = useIcon();

const fallBackIcon = fallbackIcon || <UserIcon aria-label="User Avatar" />;
const fallbackIcon = fallbackIconProp || (
<UserIcon aria-label="User Avatar" />
);

useComponentCssInjection({
testId: "salt-avatar",
Expand Down Expand Up @@ -105,7 +107,7 @@ export const Avatar = forwardRef<HTMLDivElement, AvatarProps>(function Avatar(
{...initialsProps}
{...rest}
>
{children || avatarInitials || fallBackIcon}
{children || avatarInitials || fallbackIcon}
</div>
);
});
1 change: 0 additions & 1 deletion packages/core/src/navigation-item/NavigationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
type MouseEventHandler,
forwardRef,
} from "react";
import { useIcon } from "../semantic-icon-provider";
import { makePrefixer } from "../utils";
import { ExpansionIcon } from "./ExpansionIcon";

Expand Down

0 comments on commit 29c9b74

Please sign in to comment.