mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
UserInviteForm: Remove deprecated Form components (#84293)
* UserInviteForm: Remove deprecated Form components * Use the Form rom core
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Controller } from 'react-hook-form';
|
||||
|
||||
import { locationUtil, SelectableValue } from '@grafana/data';
|
||||
import { locationService } from '@grafana/runtime';
|
||||
@@ -8,9 +9,7 @@ import {
|
||||
Input,
|
||||
Switch,
|
||||
RadioButtonGroup,
|
||||
Form,
|
||||
Field,
|
||||
InputControl,
|
||||
FieldSet,
|
||||
Icon,
|
||||
TextLink,
|
||||
@@ -21,6 +20,7 @@ import {
|
||||
import { getConfig } from 'app/core/config';
|
||||
import { OrgRole, useDispatch } from 'app/types';
|
||||
|
||||
import { Form } from '../../core/components/Form/Form';
|
||||
import { addInvitee } from '../invites/state/actions';
|
||||
|
||||
const tooltipMessage = (
|
||||
@@ -97,7 +97,7 @@ export const UserInviteForm = () => {
|
||||
</Label>
|
||||
}
|
||||
>
|
||||
<InputControl
|
||||
<Controller
|
||||
render={({ field: { ref, ...field } }) => <RadioButtonGroup {...field} options={roles} />}
|
||||
control={control}
|
||||
name="role"
|
||||
|
||||
Reference in New Issue
Block a user