Skip to content

Commit

Permalink
Merge pull request #642 from 3DStreet/remove-streetmix-icons
Browse files Browse the repository at this point in the history
dont show icon if there is no icon for card
  • Loading branch information
kfarr authored Jun 17, 2024
2 parents 8d6ea00 + 6dfc96a commit 2e6e3a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -345,7 +345,7 @@ const AddLayerPanel = ({ onClose, isAddLayerPanelOpen }) => {
/>
)}
<div className={styles.body}>
{card.icon ? <img src={card.icon} /> : <Load24Icon />}
{card.icon ? <img src={card.icon} /> : ''}
<p className={styles.description}>{card.name}</p>
</div>
</div>
Expand Down

0 comments on commit 2e6e3a2

Please sign in to comment.