mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
AssetDialog: Fix prop-types
This commit is contained in:
parent
2d2b721d58
commit
a228ad66bc
@ -77,7 +77,13 @@ export const AssetDefinition = PropTypes.shape({
|
||||
|
||||
export const CrumbDefinition = PropTypes.shape({
|
||||
id: PropTypes.number,
|
||||
label: PropTypes.string.isRequired,
|
||||
label: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.shape({
|
||||
id: PropTypes.string.isRequired,
|
||||
defaultMessage: PropTypes.string.isRequired,
|
||||
}),
|
||||
]).isRequired,
|
||||
href: PropTypes.string,
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user