Remove Avatar component from @primer/styled-react#7685
Conversation
🦋 Changeset detectedLatest commit: f68e46d 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.
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. |
|
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/16981 |
|
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