From 794be1205f3043d4da04a68c9bfae257a9fcdb0b Mon Sep 17 00:00:00 2001 From: Virginie Ky Date: Thu, 5 Sep 2019 17:51:38 +0200 Subject: [PATCH] code clean --- .../admin/src/components/CustomTable/Row.js | 9 ++------- .../admin/src/components/CustomTable/index.js | 2 -- .../admin/src/components/MediaPreviewList/index.js | 1 - .../admin/src/containers/ListView/index.js | 1 - 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/Row.js b/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/Row.js index 1926f96940..1049d8d66d 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/Row.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/Row.js @@ -56,7 +56,7 @@ const getDisplayedValue = (type, value, name) => { } }; -function Row({ goTo, isBulkable, isHoverable, row, headers }) { +function Row({ goTo, isBulkable, row, headers }) { const { entriesToDelete, onChangeBulk, @@ -65,12 +65,7 @@ function Row({ goTo, isBulkable, isHoverable, row, headers }) { } = useListView(); const renderMediaList = files => { - return ( - - ); + return ; }; return ( diff --git a/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/index.js b/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/index.js index 84db7c3f89..aa9a14249e 100644 --- a/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/index.js +++ b/packages/strapi-plugin-content-manager/admin/src/components/CustomTable/index.js @@ -18,7 +18,6 @@ function CustomTable({ push, }, isBulkable, - isHoverable, }) { const { emitEvent, @@ -68,7 +67,6 @@ function CustomTable({ > { const { name, size, url } = image; - // TODO !! - Specific UI for size > 200MB if (size > 2000) { return renderFile(image); } diff --git a/packages/strapi-plugin-content-manager/admin/src/containers/ListView/index.js b/packages/strapi-plugin-content-manager/admin/src/containers/ListView/index.js index 44fec4ef5f..1715004e47 100644 --- a/packages/strapi-plugin-content-manager/admin/src/containers/ListView/index.js +++ b/packages/strapi-plugin-content-manager/admin/src/containers/ListView/index.js @@ -377,7 +377,6 @@ function ListView({ data={data} headers={getTableHeaders()} isBulkable={getLayoutSettingRef.current('bulkable')} - isHoverable={true} onChangeParams={handleChangeParams} slug={slug} />