diff --git a/packages/core/admin/admin/src/content-manager/pages/EditView/index.js b/packages/core/admin/admin/src/content-manager/pages/EditView/index.js index b169688f5b..40f94b8170 100644 --- a/packages/core/admin/admin/src/content-manager/pages/EditView/index.js +++ b/packages/core/admin/admin/src/content-manager/pages/EditView/index.js @@ -364,194 +364,6 @@ const EditView = ({ }} ); - - // return ( - // - // {({ - // componentsDataStructure, - // contentTypeDataStructure, - // data, - // isCreatingEntry, - // isLoadingForData, - // onDelete, - // onDeleteSucceeded, - // onPost, - // onPublish, - // onPut, - // onUnpublish, - // redirectionLink, - // status, - // }) => { - // return ( - // - // - //
- //
- //
- // {formattedContentTypeLayout.map((block, blockIndex) => { - // if (isDynamicZone(block)) { - // const { - // 0: { - // 0: { name, fieldSchema, metadatas, labelIcon }, - // }, - // } = block; - // const baselineAlignementSize = blockIndex === 0 ? '3px' : '0'; - - // return ( - // - // - // - // ); - // } - - // return ( - // - // {block.map((fieldsBlock, fieldsBlockIndex) => { - // return ( - //
- // {fieldsBlock.map( - // ({ name, size, fieldSchema, labelIcon, metadatas }, fieldIndex) => { - // const isComponent = fieldSchema.type === 'component'; - - // if (isComponent) { - // const { component, max, min, repeatable = false } = fieldSchema; - // const componentUid = fieldSchema.component; - - // return ( - // - // ); - // } - - // return ( - //
- // - //
- // ); - // } - // )} - //
- // ); - // })} - //
- // ); - // })} - //
- //
- // - // - // {currentContentTypeLayoutData.layouts.editRelations.length > 0 && ( - // - //
- // {currentContentTypeLayoutData.layouts.editRelations.map( - // ({ name, fieldSchema, labelIcon, metadatas, queryInfos }) => { - // return ( - // - // ); - // } - // )} - //
- //
- // )} - // - //
    - // - // { - // // trackUsage('willEditContentTypeLayoutFromEditView'); - // }} - // /> - // - // {slug !== 'strapi::administrator' && ( - // - // { - // trackUsage('willEditEditLayout'); - // }} - // icon="fa-cog" - // url={`/plugins/content-type-builder/content-types/${slug}`} - // /> - // - // )} - // {/* TODO add DOCUMENTATION */} - // - - // {allowedActions.canDelete && ( - // - // )} - //
- //
- //
- //
- // - // - // ); - // }} - // - // ); }; EditView.defaultProps = {