-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix(user): avatar icon not shown in user, when passed #3370
Fix(user): avatar icon not shown in user, when passed #3370
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@abhinandan-verma is attempting to deploy a commit to the NextUI Inc Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes focus on integrating the Changes
Assessment against linked issues
Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (7)
- apps/docs/app/blog/layout.tsx (2 hunks)
- apps/docs/app/docs/layout.tsx (2 hunks)
- apps/docs/app/figma/page.tsx (2 hunks)
- apps/docs/app/layout.tsx (2 hunks)
- apps/docs/components/footer.tsx (1 hunks)
- packages/components/user/tests/user.test.tsx (1 hunks)
- packages/components/user/src/use-user.ts (2 hunks)
Files skipped from review due to trivial changes (2)
- apps/docs/app/layout.tsx
- apps/docs/components/footer.tsx
Additional comments not posted (4)
apps/docs/app/blog/layout.tsx (1)
3-4
: Importing and usingScriptProviders
.The
ScriptProviders
component is correctly imported and used within the JSX structure.apps/docs/app/docs/layout.tsx (1)
5-5
: Importing and usingScriptProviders
.The
ScriptProviders
component is correctly imported and used within the JSX structure.packages/components/user/__tests__/user.test.tsx (1)
22-25
: Improving test readability and reliability.Using
getByText
instead of querying the container directly improves the readability and reliability of the test.apps/docs/app/figma/page.tsx (1)
5-5
: Importing and usingScriptProviders
.The
ScriptProviders
component is correctly imported and used within the JSX structure.
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.
- Please include a changeset
- Please exclude those unrelated files
- The test case "should have the passed name" shouldn't be changed. Instead, you should add the new test case for the avatarProp case.
@@ -31,7 +31,7 @@ interface Props { | |||
* The user avatar props | |||
* @see https://nextui.org/docs/components/avatar | |||
*/ | |||
avatarProps?: Partial<AvatarProps>; | |||
avatarProps?: Partial<AvatarProps> & {name?: string | undefined}; |
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.
name
is in AvatarProps
already. There's no need to add that again.
Closes #3369
📝 Description
Added
name
prop in avatarProps, changed name(of avatarProps) to be same as name(of User)⛳️ Current behavior (updates)
🚀 New behavior
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
Summary by CodeRabbit
New Features
Refactor
User
component for more accurate assertions.Chores
ScriptProviders
. RemovedScriptProviders
from the root layout component.useUser
function to accept aname
property.