X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/cab8fbece33e9c6188b911552790f459c740f4cd..e3d13624759c128c326b64e9e0e60996bd28aadf:/src/views-components/dialog-create/dialog-repository-create.tsx

diff --git a/src/views-components/dialog-create/dialog-repository-create.tsx b/src/views-components/dialog-create/dialog-repository-create.tsx
new file mode 100644
index 00000000..465f622e
--- /dev/null
+++ b/src/views-components/dialog-create/dialog-repository-create.tsx
@@ -0,0 +1,23 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import * as React from 'react';
+import { InjectedFormProps } from 'redux-form';
+import { WithDialogProps } from '~/store/dialog/with-dialog';
+import { FormDialog } from '~/components/form-dialog/form-dialog';
+import { RepositoryNameField } from '~/views-components/form-fields/repository-form-fields';
+
+type DialogRepositoryProps = WithDialogProps<{}> & InjectedFormProps<any>;
+
+export const DialogRepositoryCreate = (props: DialogRepositoryProps) =>
+    <FormDialog
+        dialogTitle='Add new repository'
+        formFields={RepositoryAddField}
+        submitLabel='CREATE REPOSITORY'
+        {...props}
+    />;
+
+const RepositoryAddField = () =>
+    <RepositoryNameField />;
+
