1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import 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 import { Grid } from "@material-ui/core";
11 export const RepositoryNameField = (props: any) =>
12 <Grid container style={{ marginTop: '0', paddingTop: '24px' }}>
14 {props.data.user.username}/
16 <Grid item xs={7} style={{ bottom: '24px', position: 'relative' }}>
19 component={TextField as any}
20 validate={REPOSITORY_NAME_VALIDATION}
28 It may take a minute or two before you can clone your new repository.