Przeglądaj źródła

Made the item card left image hideable if no params are send

master
kj1352 4 lat temu
rodzic
commit
96a48df476
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      src/components/item-card/itemCard.tsx

+ 2
- 2
src/components/item-card/itemCard.tsx Wyświetl plik

@@ -41,9 +41,9 @@ export const ItemCard: React.FC<OwnProps> = (props) => {

return <div>
<section className={styles.card} onClick={() => setShowDetails(true)}>
<figure>
{ props.leftImage && <figure>
<img src={props.leftImage} />
</figure>
</figure> }
<div className={styles.contentHolder}>
<h6> { props.heading.name }: {props.heading.value} </h6>
<h2> {props.value} </h2>


Ładowanie…
Anuluj
Zapisz