From 69c99a8700bb510ee55019af313afa8d81be4ad5 Mon Sep 17 00:00:00 2001 From: cyril lopez Date: Tue, 17 Oct 2017 16:41:57 +0200 Subject: [PATCH] Add IcoContainer component to content-manager --- .../lib/src/components/Ico/index.js | 10 +++++++--- .../admin/src/components/TableRow/index.js | 6 +++--- .../admin/src/containers/List/index.js | 5 +---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/strapi-helper-plugin/lib/src/components/Ico/index.js b/packages/strapi-helper-plugin/lib/src/components/Ico/index.js index c420a93ada..e9a0a2e285 100644 --- a/packages/strapi-helper-plugin/lib/src/components/Ico/index.js +++ b/packages/strapi-helper-plugin/lib/src/components/Ico/index.js @@ -4,9 +4,13 @@ import PropTypes from 'prop-types'; import styles from './styles.scss'; function Ico(props) { + const iProps = Object.assign({}, props); + const propsToDelete = ['onClick', 'icoType']; + propsToDelete.map((value) => delete iProps[value]); + return ( -
handleClick(e, props.onClick)}> -