1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from 'react';
6 import { InjectedFormProps } from 'redux-form';
7 import { WithDialogProps } from 'store/dialog/with-dialog';
8 import { FormDialog } from 'components/form-dialog/form-dialog';
9 import { UserEmailField, UserVirtualMachineField, UserGroupsVirtualMachineField } from 'views-components/form-fields/user-form-fields';
11 export type DialogUserProps = WithDialogProps<{}> & InjectedFormProps<any>;
13 export const UserRepositoryCreate = (props: DialogUserProps) =>
15 dialogTitle='New user'
16 formFields={UserAddFields}
17 submitLabel='ADD NEW USER'
21 const UserAddFields = (props: DialogUserProps) => <span>
23 <UserVirtualMachineField data={props.data}/>
24 <UserGroupsVirtualMachineField />