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

View File

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

View File

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