mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-18 02:30:58 +01:00
fix typo and use singular
This commit is contained in:
parent
47992288c4
commit
515381b930
@ -17,7 +17,7 @@ const CopyEnvironment = ({ collection, environment, onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
name: Yup.string()
|
name: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -17,7 +17,7 @@ const CreateEnvironment = ({ collection, onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
name: Yup.string()
|
name: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -17,7 +17,7 @@ const RenameEnvironment = ({ onClose, environment, collection }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
name: Yup.string()
|
name: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -18,7 +18,7 @@ const CloneCollectionItem = ({ collection, item, onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
name: Yup.string()
|
name: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -17,7 +17,7 @@ const RenameCollectionItem = ({ collection, item, onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
name: Yup.string()
|
name: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -16,7 +16,7 @@ const RenameCollection = ({ collection, onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
name: Yup.string()
|
name: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -21,11 +21,11 @@ const CreateCollection = ({ onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
collectionName: Yup.string()
|
collectionName: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.required('collection name is required'),
|
.required('collection name is required'),
|
||||||
collectionFolderName: Yup.string()
|
collectionFolderName: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(50, 'must be 50 characters or less')
|
.max(50, 'must be 50 characters or less')
|
||||||
.matches(/^[\w\-. ]+$/, 'Folder name contains invalid characters')
|
.matches(/^[\w\-. ]+$/, 'Folder name contains invalid characters')
|
||||||
.required('folder name is required'),
|
.required('folder name is required'),
|
||||||
|
@ -16,7 +16,7 @@ const ImportCollectionLocation = ({ onClose, handleSubmit, collectionName }) =>
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
collectionLocation: Yup.string()
|
collectionLocation: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.max(500, 'must be 500 characters or less')
|
.max(500, 'must be 500 characters or less')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
|
@ -16,7 +16,7 @@ const NewFolder = ({ collection, item, onClose }) => {
|
|||||||
},
|
},
|
||||||
validationSchema: Yup.object({
|
validationSchema: Yup.object({
|
||||||
folderName: Yup.string()
|
folderName: Yup.string()
|
||||||
.min(1, 'must be atleast 1 characters')
|
.min(1, 'must be at least 1 character')
|
||||||
.required('name is required')
|
.required('name is required')
|
||||||
.test({
|
.test({
|
||||||
name: 'folderName',
|
name: 'folderName',
|
||||||
|
Loading…
Reference in New Issue
Block a user