mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 07:06:01 +08:00
fix: type email is added in the invite members (#3376)
Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
This commit is contained in:
parent
4d5ee861ec
commit
962fc5e9ff
@ -14,8 +14,6 @@ import { requireErrorMessage } from 'utils/form/requireErrorMessage';
|
|||||||
import { InviteMemberFormValues } from '../PendingInvitesContainer/index';
|
import { InviteMemberFormValues } from '../PendingInvitesContainer/index';
|
||||||
import { SelectDrawer, SpaceContainer, TitleWrapper } from './styles';
|
import { SelectDrawer, SpaceContainer, TitleWrapper } from './styles';
|
||||||
|
|
||||||
const { Option } = Select;
|
|
||||||
|
|
||||||
function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
||||||
const { t } = useTranslation('organizationsettings');
|
const { t } = useTranslation('organizationsettings');
|
||||||
|
|
||||||
@ -38,7 +36,13 @@ function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
|||||||
<Space key={key} direction="horizontal" align="start">
|
<Space key={key} direction="horizontal" align="start">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={[name, 'email']}
|
name={[name, 'email']}
|
||||||
rules={[{ required: true, message: requireErrorMessage('Email') }]}
|
rules={[
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: requireErrorMessage('Email'),
|
||||||
|
type: 'email',
|
||||||
|
},
|
||||||
|
]}
|
||||||
>
|
>
|
||||||
<Input placeholder={t('email_placeholder')} />
|
<Input placeholder={t('email_placeholder')} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
@ -47,9 +51,9 @@ function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name={[name, 'role']} initialValue="VIEWER">
|
<Form.Item name={[name, 'role']} initialValue="VIEWER">
|
||||||
<SelectDrawer>
|
<SelectDrawer>
|
||||||
<Option value="ADMIN">ADMIN</Option>
|
<Select.Option value="ADMIN">ADMIN</Select.Option>
|
||||||
<Option value="VIEWER">VIEWER</Option>
|
<Select.Option value="VIEWER">VIEWER</Select.Option>
|
||||||
<Option value="EDITOR">EDITOR</Option>
|
<Select.Option value="EDITOR">EDITOR</Select.Option>
|
||||||
</SelectDrawer>
|
</SelectDrawer>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Space>
|
</Space>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user