redesign and fixes

This commit is contained in:
2021-02-05 19:57:06 +01:00
parent c712d614e1
commit 611b101e9e
15 changed files with 243 additions and 50 deletions

View File

@@ -20,14 +20,16 @@ export default function CardDish(props) {
const FormatPrices = () => {
if (prices.price1.priceName === "") {
return(
<div className="carddish-prices-multi">
<h5>{ prices.price1.price }</h5>
</div>
)
} else {
return (
<div className="carddish-prices-multi">
{prices.price1.priceName !== "" && <h5>{prices.price1.price} ({ prices.price1.priceName })</h5>}
{prices.price2.priceName !== "" && <h5>{prices.price2.price} ({prices.price2.priceName})</h5>}
{prices.price3.priceName !== "" && <h5>{prices.price3.price} ({ prices.price3.priceName })</h5>}
{prices.price1.priceName !== "" && <h5>{ prices.price1.priceName } - {prices.price1.price}</h5>}
{prices.price2.priceName !== "" && <h5>{prices.price2.priceName} - {prices.price2.price}</h5>}
{prices.price3.priceName !== "" && <h5>{ prices.price3.priceName } - {prices.price3.price}</h5>}
</div>
)
}