From 0c3791f46aea73d779385c7b3e0e8966d4e22152 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Wed, 4 Dec 2024 14:27:41 -0500 Subject: [PATCH 1/5] fixed #407 --- .../components/forms/project-upload-form.tsx | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/web/src/components/forms/project-upload-form.tsx b/web/src/components/forms/project-upload-form.tsx index 957ea08c..381de3b8 100644 --- a/web/src/components/forms/project-upload-form.tsx +++ b/web/src/components/forms/project-upload-form.tsx @@ -7,9 +7,9 @@ import { useSession } from '../../contexts/session-context'; import { useUploadMutation } from '../../hooks/mutations/useUploadMutation'; import { popFileFromFileList } from '../../utils/dragndrop'; import { GitHubAvatar } from '../badges/github-avatar'; +import { CombinedErrorMessage } from './components/combined-error-message'; import { FileDropZone } from './components/file-dropzone'; import { SchemaDropdown } from './components/schemas-databio-dropdown'; -import { CombinedErrorMessage } from './components/combined-error-message' interface FromFileInputs { is_private: boolean; @@ -106,29 +106,29 @@ export const ProjectUploadForm = ({ onHide, defaultNamespace }: Props) => { {...register('name', { required: { value: true, - message: "empty", + message: 'empty', }, pattern: { value: /^[a-zA-Z0-9_-]+$/, - message: "invalid", + message: 'invalid', }, })} /> :
-
@@ -185,8 +185,9 @@ export const ProjectUploadForm = ({ onHide, defaultNamespace }: Props) => { ) : ( )} -

- * Namespace and Project Name are required. A tag value of "default" will be supplied if the Tag input is left empty. +

+ * Namespace and Project Name are required. A tag value of "default" will be supplied if the Tag input is left + empty.