Skip to content

chore: add new avatar component #15882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark other Avatar components as deprecated
  • Loading branch information
BrunoQuaresma committed Dec 17, 2024
commit 40615ed2715aabc3e02f431374d2703c280779a3
5 changes: 5 additions & 0 deletions site/src/components/deprecated/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export const Avatar: FC<AvatarProps> = ({
);
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can add @deprecated here as well

/**
* @deprecated Use `Avatar` from `@components/Avatar` instead.
*/
export const ExternalAvatar: FC<AvatarProps> = (props) => {
const theme = useTheme();

Expand All @@ -88,6 +91,8 @@ type AvatarIconProps = {

/**
* Use it to make an img element behaves like a MaterialUI Icon component
*
* @deprecated Use `AvatarIcon` from `@components/Avatar` instead.
*/
export const AvatarIcon: FC<AvatarIconProps> = ({ src, alt }) => {
const hookId = useId();
Expand Down