BulkMoveButton: Fix prop-types

This commit is contained in:
Gustav Hansen 2022-08-23 13:52:09 +02:00
parent 1a91b52e7c
commit 6da2461d3c
3 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ const ParentFolderDefinition = PropTypes.shape({
createdAt: PropTypes.string.isRequired, createdAt: PropTypes.string.isRequired,
name: PropTypes.string.isRequired, name: PropTypes.string.isRequired,
updatedAt: PropTypes.string.isRequired, updatedAt: PropTypes.string.isRequired,
pathId: PropTypes.string.isRequired, pathId: PropTypes.number.isRequired,
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}); });
@ -37,7 +37,7 @@ export const FolderDefinition = PropTypes.shape({
parent: PropTypes.oneOfType([ParentFolderDefinition, PropTypes.number]), parent: PropTypes.oneOfType([ParentFolderDefinition, PropTypes.number]),
updatedAt: PropTypes.string.isRequired, updatedAt: PropTypes.string.isRequired,
updatedBy: PropTypes.shape(), updatedBy: PropTypes.shape(),
pathId: PropTypes.string.isRequired, pathId: PropTypes.number.isRequired,
path: PropTypes.string.isRequired, path: PropTypes.string.isRequired,
}); });

View File

@ -10,7 +10,7 @@ export const useFolder = jest.fn().mockReturnValue({
count: 1, count: 1,
}, },
path: '/1', path: '/1',
pathId: '1', pathId: 1,
updatedAt: '', updatedAt: '',
parent: { parent: {
id: 2, id: 2,
@ -23,7 +23,7 @@ export const useFolder = jest.fn().mockReturnValue({
count: 1, count: 1,
}, },
path: '/1', path: '/1',
pathId: '1', pathId: 1,
updatedAt: '', updatedAt: '',
}, },
}, },

View File

@ -24,7 +24,7 @@ const FIXTURE_FOLDER = {
count: 1, count: 1,
}, },
path: '/1', path: '/1',
pathId: '1', pathId: 1,
updatedAt: '', updatedAt: '',
parent: { parent: {
id: 2, id: 2,
@ -37,7 +37,7 @@ const FIXTURE_FOLDER = {
count: 1, count: 1,
}, },
path: '/1', path: '/1',
pathId: '1', pathId: 1,
updatedAt: '', updatedAt: '',
}, },
}; };