From a0ed6a379bf268e11c69e6cb0d753ccbc82a6922 Mon Sep 17 00:00:00 2001 From: orangemug Date: Sun, 23 Sep 2018 09:05:08 +0100 Subject: [PATCH] Always show layer visibility toggle in layer list --- src/components/layers/LayerListItem.jsx | 13 +++++++++-- src/styles/_layer.scss | 29 +++++++++++++++++-------- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/src/components/layers/LayerListItem.jsx b/src/components/layers/LayerListItem.jsx index 805e50f..d1bf0d4 100644 --- a/src/components/layers/LayerListItem.jsx +++ b/src/components/layers/LayerListItem.jsx @@ -31,7 +31,8 @@ class IconAction extends React.Component { static propTypes = { action: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, - wdKey: PropTypes.string + wdKey: PropTypes.string, + classBlockName: PropTypes.string, } renderIcon() { @@ -44,10 +45,15 @@ class IconAction extends React.Component { } render() { + let classAdditions = ''; + if (this.props.classBlockName) { + classAdditions = `maputnik-layer-list-icon-action__${this.props.classBlockName}`; + } + return