Skip to content
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: use ref of the Form instead of the useForm function in the Modal #2270

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Mar 25, 2024

This PR is related to #2178. Please read the description of #2178.

This PR makes the modal component, which contains a Form, use the ref prop to get the instance of the Form instead of setting the form prop using Form.useForm.

Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions bot added the size:L 100~500 LoC label Mar 25, 2024
Copy link

github-actions bot commented Mar 25, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 2.9% 102/3518
🔴 Branches 3.07% 69/2245
🔴 Functions 1.44% 17/1179
🔴 Lines 2.95% 102/3454

Test suite run success

20 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from bc90984

@yomybaby yomybaby requested a review from agatha197 March 25, 2024 07:49
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM!

@agatha197 agatha197 merged commit 4cc6a9d into main Mar 28, 2024
8 checks passed
@agatha197 agatha197 deleted the fix/formRef-instead-of-useForm-in-modal branch March 28, 2024 01:48
yomybaby added a commit that referenced this pull request Apr 1, 2024
yomybaby added a commit that referenced this pull request Apr 1, 2024
* style: update hard coded color of sftp dialog

* style: change color for better UI

* feat: change mwc button color and fill missed i18n

* style: change slider text color

* docs: fill missed translations

* Update zh-TW translation for "InactivateTheFollowingUsers"

* add missing i18n

* revert missing `id.json` strings by #2270

---------

Co-authored-by: Jong Eun Lee <jongeun@lablup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants