Skip to content

feat: confirm support title#67

Merged
simonguo merged 1 commit intorsuite:masterfrom
myNameIsDu:feat/confirm-title
Apr 1, 2025
Merged

feat: confirm support title#67
simonguo merged 1 commit intorsuite:masterfrom
myNameIsDu:feat/confirm-title

Conversation

@myNameIsDu
Copy link
Copy Markdown
Member

image

@simonguo simonguo requested a review from Copilot April 1, 2025 02:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

A PR to add support for a custom title in the confirm dialog.

  • Introduces new tests in confirm.test.js to verify the dialog's behavior with and without a custom title.
  • Updates InteractionModal.jsx to conditionally render a header containing the custom title.
  • Modifies demo/index.jsx to demonstrate usage of the custom title feature.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/tests/confirm.test.js Adds tests for verifying dialog title rendering.
src/InteractionModal.jsx Renders Modal header with a custom title when provided.
demo/index.jsx Demonstrates confirm usage with a custom title.
Comments suppressed due to low confidence (1)

src/tests/confirm.test.js:32

  • [nitpick] Consider revising the test name for grammatical consistency (e.g., 'shows dialog with custom title') to match the style of other tests.
it('show dialog with custom title', async () => {

@simonguo simonguo merged commit 0147c60 into rsuite:master Apr 1, 2025
3 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 1, 2025

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants