From 6dfc96afe89c7f98d8d6c6e12cd725407978a7f0 Mon Sep 17 00:00:00 2001 From: Alexander Goryushkin Date: Fri, 14 Jun 2024 22:34:51 -0400 Subject: [PATCH] dont show icon if there is no icon for card --- .../components/AddLayerPanel/AddLayerPanel.component.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/components/components/AddLayerPanel/AddLayerPanel.component.jsx b/src/editor/components/components/AddLayerPanel/AddLayerPanel.component.jsx index e97c8a089..af66eda14 100644 --- a/src/editor/components/components/AddLayerPanel/AddLayerPanel.component.jsx +++ b/src/editor/components/components/AddLayerPanel/AddLayerPanel.component.jsx @@ -4,7 +4,7 @@ import { useAuthContext } from '../../../contexts/index.js'; import styles from './AddLayerPanel.module.scss'; import classNames from 'classnames'; import { Button } from '../Button'; -import { Chevron24Down, Load24Icon, Plus20Circle } from '../../../icons'; +import { Chevron24Down, Plus20Circle } from '../../../icons'; import { Dropdown } from '../Dropdown'; import CardPlaceholder from '../../../../../ui_assets/card-placeholder.svg'; import LockedCard from '../../../../../ui_assets/locked-card.svg'; @@ -345,7 +345,7 @@ const AddLayerPanel = ({ onClose, isAddLayerPanelOpen }) => { /> )}
- {card.icon ? : } + {card.icon ? : ''}

{card.name}