-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(accordion): pass missing dividerProps
to Divider
#3392
Conversation
🦋 Changeset detectedLatest commit: 1f24ea4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 ↗︎
|
@chirokas is attempting to deploy a commit to the NextUI Inc Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe recent changes to the Changes
Sequence Diagram(s)No sequence diagrams as the changes are limited to extending a component property and adding a corresponding test case. Assessment against linked issues
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: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (3)
- .changeset/many-wasps-move.md (1 hunks)
- packages/components/accordion/tests/accordion.test.tsx (1 hunks)
- packages/components/accordion/src/accordion.tsx (2 hunks)
Additional comments not posted (4)
.changeset/many-wasps-move.md (1)
1-5
: Ensure completeness and clarity in changeset description.The changeset message is brief and to the point. However, it would be beneficial to provide more context about the changes, such as why the
dividerProps
were missing and the impact of this fix.Consider updating the description to:
--- "@nextui-org/accordion": patch --- Pass missing `dividerProps` to Divider in Accordion component. This fix allows customization of the Divider's properties, such as color, which was previously not possible.packages/components/accordion/src/accordion.tsx (2)
22-22
: EnsuredividerProps
is correctly used within the component.The addition of
dividerProps
in the destructuring assignment is correct. Ensure that this prop is passed to theDivider
component where it is used.
49-49
: PassdividerProps
to the Divider component.This change correctly passes
dividerProps
to theDivider
component, ensuring that additional properties can be applied to the Divider.packages/components/accordion/__tests__/accordion.test.tsx (1)
311-328
: Test case fordividerProps
is well-implemented.The test case correctly verifies that
dividerProps
are passed to theDivider
component and that the specifiedclassName
is applied.
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: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
Files selected for processing (1)
- .changeset/many-wasps-move.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .changeset/many-wasps-move.md
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.
Perfect!
@chirokas please fix the conflicts |
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: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- packages/components/accordion/tests/accordion.test.tsx (1 hunks)
Files skipped from review due to trivial changes (1)
- packages/components/accordion/tests/accordion.test.tsx
Closes #3390
📝 Description
Pass missing
dividerProps
to Divider⛳️ Current behavior (updates)
🚀 New behavior
💣 Is this a breaking change (Yes/No):
📝 Additional Information
Summary by CodeRabbit
New Features
dividerProps
to customize dividers between items.Tests
dividerProps
are correctly passed to the divider component within the Accordion.