redesign and fixes
This commit is contained in:
@@ -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 }zł</h5>
|
||||
</div>
|
||||
)
|
||||
} else {
|
||||
return (
|
||||
<div className="carddish-prices-multi">
|
||||
{prices.price1.priceName !== "" && <h5>{prices.price1.price}zł ({ prices.price1.priceName })</h5>}
|
||||
{prices.price2.priceName !== "" && <h5>{prices.price2.price}zł ({prices.price2.priceName})</h5>}
|
||||
{prices.price3.priceName !== "" && <h5>{prices.price3.price}zł ({ prices.price3.priceName })</h5>}
|
||||
{prices.price1.priceName !== "" && <h5>{ prices.price1.priceName } - {prices.price1.price}zł</h5>}
|
||||
{prices.price2.priceName !== "" && <h5>{prices.price2.priceName} - {prices.price2.price}zł</h5>}
|
||||
{prices.price3.priceName !== "" && <h5>{ prices.price3.priceName } - {prices.price3.price}zł</h5>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user