chore: pretty-quick fixes

This commit is contained in:
Luiz Fonseca 2023-10-04 22:09:11 +02:00
parent f7eb325e11
commit e1bf475f1f
2 changed files with 6 additions and 5 deletions

View File

@ -29,9 +29,7 @@ const CreateCollection = ({ onClose }) => {
.max(50, 'must be 50 characters or less')
.matches(/^[\w\-. ]+$/, 'Folder name contains invalid characters')
.required('folder name is required'),
collectionLocation: Yup.string()
.min(1, 'location is required')
.required('location is required'),
collectionLocation: Yup.string().min(1, 'location is required').required('location is required')
}),
onSubmit: (values) => {
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">
<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>
<input
id="collection-folder-name"

View File

@ -39,7 +39,7 @@ const addSuffixToDuplicateName = (item, index, allItems) => {
return nameSuffix;
}, 0);
return nameSuffix !== 0 ? `${item.name}_${nameSuffix}` : item.name;
}
};
const transformInsomniaRequestItem = (request, index, allRequests) => {
const name = addSuffixToDuplicateName(request, index, allRequests);