-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/avatar component #129
Conversation
🦋 Changeset detectedLatest commit: 81f884d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
this seems redundant with the <AvatarFallback className={classNames.fallback}>
<panda.div
height="inherit"
justifyContent="center"
alignItems="center"
display="flex"
>
{fallback}
</panda.div>
</AvatarFallback>
``` |
Close! Make sure that the closing dashes are on the same indent level as the opening, example: <AvatarFallback className={classNames.fallback}>
<panda.div
height="inherit"
justifyContent="center"
alignItems="center"
display="flex"
>
{fallback}
</panda.div>
</AvatarFallback> |
Will check it out in PR! Ty for the grind man. You are killing it |
// TODO remove explicit type annotation, required due to `pnpm` bug (and therefore Yarn with `pnpm` linker); https://github.com/microsoft/TypeScript/issues/47663 | ||
const meta: Meta<typeof Avatar> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be able to remove this now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I saw my branch was behind again and caught that! Thanks for the heads up.
{isLoaded ? ( | ||
<Avatar src="/img/logo.png" alt="avatar" /> | ||
) : ( | ||
<Avatar src="" alt="" /> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be simplified to checking isLoaded
in the props themselves, that way there wouldn't need to be 2 <Avatar ...
lines
<Avatar src="/img/logo.png" alt="avatar" /> | ||
) : ( | ||
<Avatar src="" alt="" /> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment (can reduce Avatar
lines)
{isLoaded ? ( | ||
<Avatar src="/img/logo.png" alt="avatar" /> | ||
) : ( | ||
<Avatar src="" /> | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had some inspiration with the text being offset in the fallback and added a margin to counterbalance the borderWidth which was affecting it. |
Description
Task link: https://trello.com/c/Fvz98TFA/216-avatar-component
Added
Avatar
componentTest Steps