mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
ML: Relax prop-types for UploadingAssetCard and PendingAssetStep
This commit is contained in:
parent
1e9c66a351
commit
7ea93622fd
@ -130,7 +130,7 @@ UploadingAssetCard.propTypes = {
|
||||
rawFile: PropTypes.instanceOf(File),
|
||||
type: PropTypes.oneOf(Object.values(AssetType)),
|
||||
}).isRequired,
|
||||
folderId: PropTypes.number,
|
||||
folderId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
onCancel: PropTypes.func.isRequired,
|
||||
onStatusChange: PropTypes.func.isRequired,
|
||||
};
|
||||
|
@ -171,7 +171,7 @@ PendingAssetStep.defaultProps = {
|
||||
PendingAssetStep.propTypes = {
|
||||
addUploadedFiles: PropTypes.func,
|
||||
assets: PropTypes.arrayOf(AssetDefinition).isRequired,
|
||||
folderId: PropTypes.number,
|
||||
folderId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
onClose: PropTypes.func.isRequired,
|
||||
onEditAsset: PropTypes.func.isRequired,
|
||||
onRemoveAsset: PropTypes.func.isRequired,
|
||||
|
Loading…
x
Reference in New Issue
Block a user