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

Forms: Remove Form, InputControl and FieldArray appearances in Grafana #81226

Closed
41 tasks done
Clarity-89 opened this issue Jan 25, 2024 · 0 comments
Closed
41 tasks done
Labels
help wanted type/chore type/epic Issue made of smaller issues

Comments

@Clarity-89
Copy link
Contributor

Clarity-89 commented Jan 25, 2024

Usage of Form, InputControl and FieldArray components from grafana/ui has been deprecated and they should be replaced inside Grafana with react-hook-form's components and hooks.

  • Form should be replaced with the Form component from core a native HTML form and the methods of the useForm hook should be used instead.
  • InputControl should be replaced with the Controller component from react-hook-form.
  • FieldArray should be replaced with the methods from the useFieldArray hook.

List of files:

@Clarity-89 Clarity-89 added type/epic Issue made of smaller issues help wanted type/chore labels Jan 25, 2024
@Clarity-89 Clarity-89 added this to the 11.0.x milestone Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type/chore type/epic Issue made of smaller issues
Projects
Status: 🚀 Done
Development

No branches or pull requests

2 participants