Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 27x 1x 2x 27x | import PropTypes from 'prop-types';
import CustomPropertiesEditCtx from './CustomPropertiesEditCtx';
const CustomPropertiesEdit = ({
contexts = [],
customPropertiesEndpoint,
id,
intlKey: passedIntlKey,
intlNS: passedIntlNS,
labelOverrides = {},
nameOverride
}) => {
return (
contexts.map(ctx => (
<CustomPropertiesEditCtx
key={`customPropertiesEdit-${ctx}`}
{...{
ctx,
customPropertiesEndpoint,
id,
intlKey: passedIntlKey,
intlNS: passedIntlNS,
labelOverrides,
nameOverride
}}
/>
))
);
};
CustomPropertiesEdit.propTypes = {
contexts: PropTypes.arrayOf(PropTypes.string),
customPropertiesEndpoint: PropTypes.string,
id: PropTypes.string,
intlKey: PropTypes.string,
intlNS: PropTypes.string,
labelOverrides: PropTypes.object,
nameOverride: PropTypes.string
};
export default CustomPropertiesEdit;
|