Remove Avatar component from @primer/styled-react#7685
Open
Remove Avatar component from @primer/styled-react#7685
Conversation
🦋 Changeset detectedLatest commit: fb0456d 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 |
This change removes the Avatar component from the @primer/styled-react package.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated Avatar wrapper component from the @primer/styled-react package, including its public exports and related test/snapshot coverage.
Changes:
- Removed
AvatarandAvatarPropsexports frompackages/styled-react/src/index.tsx. - Deleted the
packages/styled-react/src/components/Avatar.tsxwrapper implementation. - Removed the Avatar
sxsupport test and updated the exports snapshot accordingly.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/styled-react/src/index.tsx | Drops Avatar / AvatarProps from the public API exports. |
| packages/styled-react/src/components/Avatar.tsx | Deletes the styled-react wrapper around @primer/react’s Avatar. |
| packages/styled-react/src/tests/primer-react.browser.test.tsx | Removes the Avatar supports sx prop test and import. |
| packages/styled-react/src/tests/snapshots/exports.test.ts.snap | Updates the exports snapshot to no longer include Avatar. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the Avatar component and its related exports from the
@primer/styled-reactpackage. There are no more uses found https://primer-query.githubapp.com/?query=package%3A%22%40primer%2Fstyled-react%22+name%3A%22Avatar%22Changes
AvatarandAvatarPropsexports frompackages/styled-react/src/index.tsxpackages/styled-react/src/components/Avatar.tsxpackages/styled-react/src/__tests__/primer-react.browser.test.tsxpackages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap