added-attributes-dialog-and-init-creating-repos
[arvados-workbench2.git] / src / views-components / form-fields / repository-form-fields.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import * as React from "react";
6 import { Field } from "redux-form";
7 import { TextField } from "~/components/text-field/text-field";
8 import { REPOSITORY_NAME_VALIDATION } from "~/validators/validators";
9
10 export const RepositoryNameField = () =>
11     <span>
12         pawelkowalczyk/
13         <Field
14             name='name'
15             component={TextField}
16             validate={REPOSITORY_NAME_VALIDATION}
17             label="Name"
18             autoFocus={true} />.git<br/>
19             It may take a minute or two before you can clone your new repository.
20             </span>;