15397: Fix usage of deprecated assertRegexpMatches.
[arvados.git] / services / workbench2 / src / views-components / dialog-create / dialog-repository-create.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
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';
10
11 type DialogRepositoryProps = WithDialogProps<{}> & InjectedFormProps<any>;
12
13 export const DialogRepositoryCreate = (props: DialogRepositoryProps) =>
14     <FormDialog
15         dialogTitle='Add new repository'
16         formFields={RepositoryNameField}
17         submitLabel='CREATE REPOSITORY'
18         {...props}
19     />;
20
21