mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 03:15:53 +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 { SelectDrawer, SpaceContainer, TitleWrapper } from './styles';
|
||||
|
||||
const { Option } = Select;
|
||||
|
||||
function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
||||
const { t } = useTranslation('organizationsettings');
|
||||
|
||||
@ -38,7 +36,13 @@ function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
||||
<Space key={key} direction="horizontal" align="start">
|
||||
<Form.Item
|
||||
name={[name, 'email']}
|
||||
rules={[{ required: true, message: requireErrorMessage('Email') }]}
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: requireErrorMessage('Email'),
|
||||
type: 'email',
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input placeholder={t('email_placeholder')} />
|
||||
</Form.Item>
|
||||
@ -47,9 +51,9 @@ function InviteTeamMembers({ form, onFinish }: Props): JSX.Element {
|
||||
</Form.Item>
|
||||
<Form.Item name={[name, 'role']} initialValue="VIEWER">
|
||||
<SelectDrawer>
|
||||
<Option value="ADMIN">ADMIN</Option>
|
||||
<Option value="VIEWER">VIEWER</Option>
|
||||
<Option value="EDITOR">EDITOR</Option>
|
||||
<Select.Option value="ADMIN">ADMIN</Select.Option>
|
||||
<Select.Option value="VIEWER">VIEWER</Select.Option>
|
||||
<Select.Option value="EDITOR">EDITOR</Select.Option>
|
||||
</SelectDrawer>
|
||||
</Form.Item>
|
||||
</Space>
|
||||
|
Loading…
x
Reference in New Issue
Block a user