From 3c5264db08d35120b7a7da53c265814ad3f6a2c7 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 7 Aug 2023 17:16:46 +0100 Subject: [PATCH] remove caret icon and padding --- .../tree-view/src/lib/tree-view-item/tree-view-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx b/libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx index 795f71f7b5..f6d2673464 100644 --- a/libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx +++ b/libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx @@ -4,7 +4,7 @@ import { TreeViewItemProps } from '../../types' import './tree-view-item.css' export const TreeViewItem = (props: TreeViewItemProps) => { - const { id, children, label, labelClass, expand, iconX = 'fas fa-caret-right', iconY = 'fas fa-caret-down', icon, controlBehaviour = false, innerRef, showIcon = true, ...otherProps } = props + const { id, children, label, labelClass, expand, iconX = 'fas fa-caret-right', iconY = '', icon, controlBehaviour = false, innerRef, showIcon = true, ...otherProps } = props const [isExpanded, setIsExpanded] = useState(false) useEffect(() => { @@ -15,7 +15,7 @@ export const TreeViewItem = (props: TreeViewItemProps) => {
  • !controlBehaviour && setIsExpanded(!isExpanded)}> { children && showIcon ?
    : icon ?
    : null }