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 { RepositoryNameField } from 'views-components/form-fields/repository-form-fields';
11 type DialogRepositoryProps = WithDialogProps<{}> & InjectedFormProps<any>;
13 export const DialogRepositoryCreate = (props: DialogRepositoryProps) =>
15 dialogTitle='Add new repository'
16 formFields={RepositoryNameField}
17 submitLabel='CREATE REPOSITORY'