mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-21 04:08:01 +02:00
chore: pretty-quick fixes
This commit is contained in:
parent
f7eb325e11
commit
e1bf475f1f
@ -29,9 +29,7 @@ const CreateCollection = ({ onClose }) => {
|
|||||||
.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'),
|
||||||
collectionLocation: Yup.string()
|
collectionLocation: Yup.string().min(1, 'location is required').required('location is required')
|
||||||
.min(1, 'location is required')
|
|
||||||
.required('location is required'),
|
|
||||||
}),
|
}),
|
||||||
onSubmit: (values) => {
|
onSubmit: (values) => {
|
||||||
dispatch(createCollection(values.collectionName, values.collectionFolderName, values.collectionLocation))
|
dispatch(createCollection(values.collectionName, values.collectionFolderName, values.collectionLocation))
|
||||||
@ -116,7 +114,10 @@ const CreateCollection = ({ onClose }) => {
|
|||||||
|
|
||||||
<label htmlFor="collection-folder-name" className="flex items-center mt-3">
|
<label htmlFor="collection-folder-name" className="flex items-center mt-3">
|
||||||
<span className="font-semibold">Folder Name</span>
|
<span className="font-semibold">Folder Name</span>
|
||||||
<Tooltip text="This folder will be created under the selected location" tooltipId="collection-folder-name-tooltip" />
|
<Tooltip
|
||||||
|
text="This folder will be created under the selected location"
|
||||||
|
tooltipId="collection-folder-name-tooltip"
|
||||||
|
/>
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
id="collection-folder-name"
|
id="collection-folder-name"
|
||||||
|
@ -39,7 +39,7 @@ const addSuffixToDuplicateName = (item, index, allItems) => {
|
|||||||
return nameSuffix;
|
return nameSuffix;
|
||||||
}, 0);
|
}, 0);
|
||||||
return nameSuffix !== 0 ? `${item.name}_${nameSuffix}` : item.name;
|
return nameSuffix !== 0 ? `${item.name}_${nameSuffix}` : item.name;
|
||||||
}
|
};
|
||||||
|
|
||||||
const transformInsomniaRequestItem = (request, index, allRequests) => {
|
const transformInsomniaRequestItem = (request, index, allRequests) => {
|
||||||
const name = addSuffixToDuplicateName(request, index, allRequests);
|
const name = addSuffixToDuplicateName(request, index, allRequests);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user